--
Ticket URL: <https://code.djangoproject.com/ticket/32607>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* Attachment "toto.png" added.
Screenshot of the bug in browser after having clicked "Save" button with
the same content
Old description:
> In django administration when wanting to save a DateTimeField, it raises
> a ValidationError "This field is mandatory" if we only provide a date and
> no time.
New description:
In django administration when wanting to save a DateTimeField, it raises a
ValidationError "This field is mandatory" if we only provide a date and no
time.
Create a Model with a DateTimeField, register it on django.contrib.admin,
makemigrations and migrate, then go to django administration in browser
and try saving it without providing in the time : it raises a Validation
error.
--
--
Ticket URL: <https://code.djangoproject.com/ticket/32607#comment:1>
* status: new => closed
* resolution: => invalid
Comment:
This is working as intended. If you want to make the time optional, you
can customize the field.
--
Ticket URL: <https://code.djangoproject.com/ticket/32607#comment:2>