Opened 8 years ago

Closed 8 years ago

#6914 closed (duplicate)

BooleanField doesn't always clean to False when required=True

Reported by: DavidReynolds 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:


In the documentation it says:

Validates that the check box is checked (i.e. the value is True) if the field has required=True.

However, this isn't the case. I've seen it show up in cleaned_data as None and False at different times (in the same form) and also no error is generated for it.

Change History (1)

comment:1 Changed 8 years ago by Karen Tracey <kmtracey@…>

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

Not raising an error is a dup of #5957. Getting returned as None doesn't sound right, if you've got a testcase that reliably shows that behavior please provide more details.

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