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:
@@ -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
|
||||
=====================================
|
||||
|
||||
|
||||
Reference in New Issue
Block a user