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:


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 7 years ago by russellm

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to invalid
  • Status changed from new to closed

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

comment:2 Changed 5 years ago by jacob

  • milestone 1.2 deleted

Milestone 1.2 deleted

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