Opened 7 years ago

Closed 7 years ago

#5291 closed (duplicate)

Error in newforms docu about BooleanField Validation and required

Reported by: lucasvo@… Owned by: nobody
Component: Forms Version: master
Severity: Keywords: documentation boolean
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


The documentation about the newforms says the following, which is wrong:


  • Default widget: CheckboxInput
  • Empty value: None
  • Normalizes to: A Python True or False value.
  • Validates nothing (i.e., it never raises a ValidationError).

If you do not set required=False, it only validates if it is True.

IMO one should change it's behaviour to not validate at all. But according to, it wont.

Attachments (0)

Change History (1)

comment:1 Changed 7 years ago by PhiR

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

see #5104

Add Comment

Modify Ticket

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

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

Note: See TracTickets for help on using tickets.