Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[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
  • Loading branch information...
commit 48dd139e5494dd6763131fddde0286d3fd4c8d5a 1 parent ab693ce
@kmtracey kmtracey authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  docs/ref/models/instances.txt
View
2  docs/ref/models/instances.txt
@@ -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:
Please sign in to comment.
Something went wrong with that request. Please try again.