[Django] #28882: Cannot save disabled SplitDateTimeField

20 views
Skip to first unread message

Django

unread,
Dec 4, 2017, 2:50:33 AM12/4/17
to django-...@googlegroups.com
#28882: Cannot save disabled SplitDateTimeField
-----------------------------------------+------------------------
Reporter: avalanchy | Owner: nobody
Type: Uncategorized | Status: new
Component: Forms | Version: 1.11
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 1
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-----------------------------------------+------------------------
I found this on admin panel while trying to save an entry with datetime
that was already set and the field was disabled. There is no way to save
such entry at all because Django is always displaying an error "Enter list
of values." above that field.

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

Django

unread,
Dec 4, 2017, 10:54:01 AM12/4/17
to django-...@googlegroups.com
#28882: Cannot save disabled SplitDateTimeField
-------------------------------+--------------------------------------

Reporter: avalanchy | Owner: nobody
Type: Uncategorized | Status: new
Component: Forms | Version: 1.11
Severity: Normal | Resolution:

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

Comment (by Hrishikesh Barman):

Can you provide a code sample to try this?

--
Ticket URL: <https://code.djangoproject.com/ticket/28882#comment:1>

Django

unread,
Dec 4, 2017, 11:56:01 AM12/4/17
to django-...@googlegroups.com
#28882: Cannot save disabled SplitDateTimeField
-------------------------------+--------------------------------------

Reporter: avalanchy | Owner: nobody
Type: Uncategorized | Status: new
Component: Forms | Version: 1.11
Severity: Normal | Resolution:

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

Comment (by avalanchy):

There is a pull request with unit test.

--
Ticket URL: <https://code.djangoproject.com/ticket/28882#comment:2>

Django

unread,
Dec 4, 2017, 2:40:31 PM12/4/17
to django-...@googlegroups.com
#28882: Cannot save disabled MultiValueFields
---------------------------+------------------------------------
Reporter: avalanchy | Owner: nobody
Type: Bug | Status: new
Component: Forms | Version: 1.11
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted

Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1

Easy pickings: 0 | UI/UX: 0
---------------------------+------------------------------------
Changes (by Tim Graham):

* needs_better_patch: 0 => 1
* stage: Unreviewed => Accepted
* type: Uncategorized => Bug


--
Ticket URL: <https://code.djangoproject.com/ticket/28882#comment:3>

Django

unread,
Dec 11, 2017, 2:22:45 AM12/11/17
to django-...@googlegroups.com
#28882: Cannot save disabled MultiValueFields
---------------------------+------------------------------------
Reporter: avalanchy | Owner: nobody
Type: Bug | Status: new
Component: Forms | Version: 1.11

Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1

Easy pickings: 0 | UI/UX: 0
---------------------------+------------------------------------
Description changed by avalanchy:

Old description:

> I found this on admin panel while trying to save an entry with datetime
> that was already set and the field was disabled. There is no way to save
> such entry at all because Django is always displaying an error "Enter
> list of values." above that field.

New description:

I found this on admin panel while trying to save an entry with

SplitDateTimeField that was already set and the field was disabled. There


is no way to save such entry at all because Django is always displaying an
error "Enter list of values." above that field.

--

--
Ticket URL: <https://code.djangoproject.com/ticket/28882#comment:4>

Django

unread,
Jan 5, 2018, 6:00:16 PM1/5/18
to django-...@googlegroups.com
#28882: Cannot save disabled MultiValueFields
---------------------------+------------------------------------
Reporter: avalanchy | Owner: nobody
Type: Bug | Status: closed
Component: Forms | Version: 1.11
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Accepted

Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1

Easy pickings: 0 | UI/UX: 0
---------------------------+------------------------------------
Changes (by Tim Graham <timograham@…>):

* status: new => closed
* resolution: => fixed


Comment:

In [changeset:"ec2ce4517ac89f6c6334fe5322d1fc2007dfcbd4" ec2ce45]:
{{{
#!CommitTicketReference repository=""
revision="ec2ce4517ac89f6c6334fe5322d1fc2007dfcbd4"
Fixed #28882 -- Fixed cleaning of disabled MultiValueFields.

Thanks avalanchy for the initial patch.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/28882#comment:5>

Reply all
Reply to author
Forward
0 new messages