summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
authorGabriel Hurley <gabehr@gmail.com>2010-10-20 21:08:50 +0000
committerGabriel Hurley <gabehr@gmail.com>2010-10-20 21:08:50 +0000
commitc2cb82b3c713ddcd33e547049edd3b850cee960c (patch)
tree40c4b8f58e8624dafa3d73534c14064bbffdde59 /docs/ref
parentf71f31228339fadd6a4d9c11d8755cfb420152bf (diff)
[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
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/models/instances.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/ref/models/instances.txt b/docs/ref/models/instances.txt
index b11a7e193d..fb951ce6a7 100644
--- a/docs/ref/models/instances.txt
+++ b/docs/ref/models/instances.txt
@@ -70,7 +70,7 @@ Example::
try:
article.full_clean()
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.
The first step ``full_clean()`` performs is to clean each individual field.