[Answered ]-Django: A None DateInput does not pass through form validate. How can I fix it?

1👍

You can exclude the field date_updated from your form and template since you want it to be timezone.now(). This way you wont have to set a value for it like None. You should just keep this part form.instance.date_updated = timezone.now() which will do what you wanted.

Leave a comment