Error in newforms docu about BooleanField Validation and required
|Reported by:||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
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 http://code.djangoproject.com/ticket/5081, it wont.