Opened 7 years ago

Closed 7 years ago

Last modified 5 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: UI/UX:

Description

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.

thanks

Change History (2)

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

Needs documentation: unset
Needs tests: unset
Patch needs improvement: unset
Resolution: invalid
Status: newclosed

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

comment:2 Changed 5 years ago by Jacob

milestone: 1.2

Milestone 1.2 deleted

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