Django 1.5: Docs on ModelForm validation are wrong
|Reported by:||direx||Owned by:||nobody|
|Severity:||Normal||Keywords:||model form validation|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Model validation (Model.full_clean()) is triggered from within the form validation step, right after the form’s clean() method is called.
This is wrong. Prior to Django 1.6 only Model.clean() is called by BaseModelForm._post_clean().
There are two options here:
- Changing the Docs
- Fixing the API (backport f34cfec0fa1243b4a3b9865b961a2360f211f0d8)