Opened 17 years ago
Closed 17 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: | 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
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.
Note:
See TracTickets
for help on using tickets.
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.