Fixed #13778: Removed a stray colon in a code example. Thanks canassa.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@13355 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
ab908685fb
commit
fc33b8e953
|
@ -109,7 +109,7 @@ of to a specific field. You can access these errors with ``NON_FIELD_ERRORS``::
|
|||
|
||||
from django.core.validators import ValidationError, NON_FIELD_ERRORS
|
||||
try:
|
||||
article.full_clean():
|
||||
article.full_clean()
|
||||
except ValidationError, e:
|
||||
non_field_errors = e.message_dict[NON_FIELD_ERRORS]
|
||||
|
||||
|
|
Loading…
Reference in New Issue