Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed import example code for NON_FIELD_ERRORS.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@13434 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 2fce843832dabd09abe75ac5d9ba909540cdd683 1 parent 9d0b9ad
@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.