Opened 17 years ago
Closed 17 years ago
#5291 closed (duplicate)
Error in newforms docu about BooleanField Validation and required
Reported by: | Owned by: | nobody | |
---|---|---|---|
Component: | Forms | Version: | dev |
Severity: | Keywords: | documentation boolean | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
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.
Note:
See TracTickets
for help on using tickets.
see #5104