1
0
mirror of https://github.com/django/django.git synced 2025-11-07 07:15:35 +00:00

Form.clean() does not need to return cleaned_data.

If it does, that will be used as the cleaned_data. The default
implementation has been changed to match this change.
This commit is contained in:
Marc Tamlyn
2013-08-08 14:05:55 +01:00
parent 7a2296eb5b
commit fb1dd6b13a
4 changed files with 30 additions and 12 deletions

View File

@@ -127,6 +127,11 @@ Minor features
for each individual field will be respected, and a new ``incomplete``
validation error will be raised when any required fields are empty.
* The :meth:`~django.forms.Form.clean` method on a form no longer needs to
return ``self.cleaned_data``. If it does return a changed dictionary then
that will still be used. The default implementation no longer returns
``self.cleaned_data``.
Backwards incompatible changes in 1.7
=====================================