Opened 6 years ago

Closed 6 years ago

#28882 closed Bug (fixed)

Cannot save disabled MultiValueFields

Reported by: avalanchy Owned by: nobody
Component: Forms Version: 1.11
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: yes
Easy pickings: no UI/UX: no

Description (last modified by avalanchy)

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.

Change History (5)

comment:1 by Hrishikesh Barman, 6 years ago

Can you provide a code sample to try this?

in reply to:  1 comment:2 by avalanchy, 6 years ago

There is a pull request with unit test.

Last edited 6 years ago by Tim Graham (previous) (diff)

comment:3 by Tim Graham, 6 years ago

Patch needs improvement: set
Summary: Cannot save disabled SplitDateTimeFieldCannot save disabled MultiValueFields
Triage Stage: UnreviewedAccepted
Type: UncategorizedBug

comment:4 by avalanchy, 6 years ago

Description: modified (diff)

comment:5 by Tim Graham <timograham@…>, 6 years ago

Resolution: fixed
Status: newclosed

In ec2ce45:

Fixed #28882 -- Fixed cleaning of disabled MultiValueFields.

Thanks avalanchy for the initial patch.

Note: See TracTickets for help on using tickets.
Back to Top