[Django] #32607: DateTimeField in django administration bug

14 views
Skip to first unread message

Django

unread,
Mar 31, 2021, 12:36:57 PM3/31/21
to django-...@googlegroups.com
#32607: DateTimeField in django administration bug
-----------------------------------------+------------------------
Reporter: mypseudo | Owner: nobody
Type: Bug | Status: new
Component: contrib.admin | Version: 3.1
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-----------------------------------------+------------------------
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.

--
Ticket URL: <https://code.djangoproject.com/ticket/32607>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Mar 31, 2021, 12:38:23 PM3/31/21
to django-...@googlegroups.com
#32607: DateTimeField in django administration bug
-------------------------------+--------------------------------------

Reporter: mypseudo | Owner: nobody
Type: Bug | Status: new
Component: contrib.admin | Version: 3.1
Severity: Normal | Resolution:

Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------
Changes (by mypseudo):

* Attachment "toto.png" added.

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

Django

unread,
Mar 31, 2021, 12:41:22 PM3/31/21
to django-...@googlegroups.com
#32607: DateTimeField in django administration bug
-------------------------------+--------------------------------------

Reporter: mypseudo | Owner: nobody
Type: Bug | Status: new
Component: contrib.admin | Version: 3.1
Severity: Normal | Resolution:

Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------
Description changed by mypseudo:

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>

Django

unread,
Mar 31, 2021, 1:39:19 PM3/31/21
to django-...@googlegroups.com
#32607: DateTimeField in django administration bug
-------------------------------+--------------------------------------
Reporter: mypseudo | Owner: nobody
Type: Bug | Status: closed
Component: contrib.admin | Version: 3.1
Severity: Normal | Resolution: invalid

Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------
Changes (by Tim Graham):

* 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>

Reply all
Reply to author
Forward
0 new messages