Opened 9 years ago

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

Description

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

BooleanField

  • 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 http://code.djangoproject.com/ticket/5081, it wont.

Change History (1)

comment:1 Changed 9 years ago by Philippe Raoult

Needs documentation: unset
Needs tests: unset
Patch needs improvement: unset
Resolution: duplicate
Status: newclosed

see #5104

Note: See TracTickets for help on using tickets.
Back to Top