mirror of
https://github.com/django/django.git
synced 2025-07-04 09:49:12 +00:00
[1.2.X] Fixed import example code for NON_FIELD_ERRORS.
r13434 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13436 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
ab693cea80
commit
48dd139e54
@ -107,7 +107,7 @@ special key that is used for errors that are tied to the entire model instead
|
||||
of to a specific field. You can access these errors with ``NON_FIELD_ERRORS``::
|
||||
|
||||
|
||||
from django.core.validators import ValidationError, NON_FIELD_ERRORS
|
||||
from django.core.exceptions import ValidationError, NON_FIELD_ERRORS
|
||||
try:
|
||||
article.full_clean()
|
||||
except ValidationError, e:
|
||||
|
Loading…
x
Reference in New Issue
Block a user