Code

Opened 6 years ago

Closed 6 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:

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 (0)

Change History (1)

comment:1 Changed 6 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.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.