Opened 5 years ago
Last modified 5 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 )
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.
Note:
See TracTickets
for help on using tickets.
Screenshot of the bug in browser after having clicked "Save" button with the same content