Opened 4 years ago

Last modified 4 years ago

#32607 closed Bug

DateTimeField in django administration bug — at Version 1

Reported by: mypseudo Owned by: nobody
Component: contrib.admin Version: 3.1
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by mypseudo)

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.

Change History (2)

by mypseudo, 4 years ago

Attachment: toto.png added

Screenshot of the bug in browser after having clicked "Save" button with the same content

comment:1 by mypseudo, 4 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.
Back to Top