#11641 closed (invalid)
using BooleanField with FormSet
Reported by: | anonymous | Owned by: | nobody |
---|---|---|---|
Component: | Forms | Version: | dev |
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 |
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
Note:
See TracTickets
for help on using tickets.
You need to set required=False. This is a documented quirk of BooleanFields.