Opened 11 years ago

Closed 11 years ago

Last modified 9 years ago

#11641 closed (invalid)

using BooleanField with FormSet

Reported by: anonymous Owned by: nobody
Component: Forms Version: master
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


When constructing a FormSet from a Form with a BooleanField, it seems like the form that is submitted does not include values when they are unchecked, prompting FormSet to through a validation error because not all values are included. I tried setting required to both True and False for the boolean field to no avail. I am on trunk, r11381.


Change History (2)

comment:1 Changed 11 years ago by Russell Keith-Magee

Resolution: invalid
Status: newclosed

You need to set required=False. This is a documented quirk of BooleanFields.

comment:2 Changed 9 years ago by Jacob

milestone: 1.2

Milestone 1.2 deleted

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