Browse files

Fixed #21009 -- Added a versionchanged note regarding changes to clea…


refs [fb1dd6b] and [1c4a9bd]
  • Loading branch information...
1 parent 4170b9f commit ebfe42d018b1268969238a5b90bfb5fe46d0d44f @timgraham timgraham committed Sep 5, 2013
Showing with 6 additions and 0 deletions.
  1. +6 −0 docs/ref/forms/validation.txt
@@ -403,6 +403,12 @@ example::
raise forms.ValidationError("Did not send for 'help' in "
"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
error message at the top of the form (normally) describing the problem.

0 comments on commit ebfe42d

Please sign in to comment.