Author: gabrielhurley
Date: 2010-10-20 16:08:06 -0500 (Wed, 20 Oct 2010)
New Revision: 14300

Modified:
   django/trunk/docs/ref/models/instances.txt
Log:
Fixed #14493 -- Corrected use of the wrong attribute in the model validation 
example pseudo-code. Thanks to wogan for the report and patch.

Modified: django/trunk/docs/ref/models/instances.txt
===================================================================
--- django/trunk/docs/ref/models/instances.txt  2010-10-20 20:16:36 UTC (rev 
14299)
+++ django/trunk/docs/ref/models/instances.txt  2010-10-20 21:08:06 UTC (rev 
14300)
@@ -70,7 +70,7 @@
     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.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to