[1.2.X] Fixed #14493 -- Corrected use of the wrong attribute in the model validation example pseudo-code. Thanks to wogan for the report and patch.
Backport of [14300] from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14301 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
f71f312283
commit
c2cb82b3c7
|
@ -70,7 +70,7 @@ Example::
|
||||||
try:
|
try:
|
||||||
article.full_clean()
|
article.full_clean()
|
||||||
except ValidationError, e:
|
except ValidationError, e:
|
||||||
# Do something based on the errors contained in e.error_dict.
|
# Do something based on the errors contained in e.message_dict.
|
||||||
# Display them to a user, or handle them programatically.
|
# Display them to a user, or handle them programatically.
|
||||||
|
|
||||||
The first step ``full_clean()`` performs is to clean each individual field.
|
The first step ``full_clean()`` performs is to clean each individual field.
|
||||||
|
|
Loading…
Reference in New Issue