Django

Code

Ticket #6914 (closed: duplicate)

Opened 2 years ago

Last modified 2 years ago

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

Reported by: DavidReynolds Assigned to: nobody
Milestone: Component: Forms
Version: SVN Keywords:
Cc: Triage Stage: Unreviewed
Has patch: 0 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

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.

Attachments

Change History

03/29/08 00:15:50 changed by Karen Tracey <kmtracey@gmail.com>

  • status changed from new to closed.
  • needs_better_patch changed.
  • resolution set to duplicate.
  • needs_tests changed.
  • needs_docs changed.

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.


Add/Change #6914 (BooleanField doesn't always clean to False when required=True)




Change Properties
Action