#13778: Error in documentation code
---------------------------+------------------------------------------------
 Reporter:  canassa        |       Owner:  nobody    
   Status:  new            |   Milestone:            
Component:  Documentation  |     Version:  1.2       
 Keywords:                 |       Stage:  Unreviewed
Has_patch:  0              |  
---------------------------+------------------------------------------------
 There is an error in this page of the documentation:

 http://docs.djangoproject.com/en/1.2/ref/models/instances/#id1

 The following code:

 {{{
 from django.core.validators import ValidationError, NON_FIELD_ERRORS
 try:
     article.full_clean():
 except ValidationError, e:
     non_field_errors = e.message_dict[NON_FIELD_ERRORS]
 }}}


 should be:


 {{{
 from django.core.validators import ValidationError, NON_FIELD_ERRORS
 try:
     article.full_clean()
 except ValidationError, e:
     non_field_errors = e.message_dict[NON_FIELD_ERRORS]
 }}}

-- 
Ticket URL: <http://code.djangoproject.com/ticket/13778>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
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