#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 Changed 11 months ago by Hrishikesh Barman

Can you provide a code sample to try this?

comment:2 in reply to:  1 Changed 11 months ago by avalanchy

There is a pull request with unit test.

Last edited 11 months ago by Tim Graham (previous) (diff)

comment:3 Changed 11 months ago by Tim Graham

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

comment:4 Changed 11 months ago by avalanchy

Description: modified (diff)

comment:5 Changed 10 months ago by Tim Graham <timograham@…>

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