Opened 12 years ago

Closed 12 years ago

#6914 closed (duplicate)

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

Reported by: David Reynolds 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


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 12 years ago by Karen Tracey <kmtracey@…>

Resolution: duplicate
Status: newclosed

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