mirror of
https://github.com/django/django.git
synced 2024-11-29 22:56:46 +01:00
Fixed #21009 -- Added a versionchanged note regarding changes to clean().
refs [fb1dd6b13a
] and [1c4a9bd9ad
]
This commit is contained in:
parent
4170b9f402
commit
ebfe42d018
@ -403,6 +403,12 @@ example::
|
|||||||
raise forms.ValidationError("Did not send for 'help' in "
|
raise forms.ValidationError("Did not send for 'help' in "
|
||||||
"the subject despite CC'ing yourself.")
|
"the subject despite CC'ing yourself.")
|
||||||
|
|
||||||
|
.. versionchanged:: 1.7
|
||||||
|
|
||||||
|
In previous versions of Django, ``form.clean()`` was required to return
|
||||||
|
a dictionary of ``cleaned_data``. This method may still return a dictionary
|
||||||
|
of data to be used, but it's no longer required.
|
||||||
|
|
||||||
In this code, if the validation error is raised, the form will display an
|
In this code, if the validation error is raised, the form will display an
|
||||||
error message at the top of the form (normally) describing the problem.
|
error message at the top of the form (normally) describing the problem.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user