diff options
| author | Karen Tracey <kmtracey@gmail.com> | 2010-07-17 09:29:44 +0000 |
|---|---|---|
| committer | Karen Tracey <kmtracey@gmail.com> | 2010-07-17 09:29:44 +0000 |
| commit | 2fce843832dabd09abe75ac5d9ba909540cdd683 (patch) | |
| tree | e85b8b6665d19a672be75444600782a376079961 /docs/ref | |
| parent | 9d0b9ad85e472dfdf6dc157e66b32e160b3c4643 (diff) | |
Fixed import example code for NON_FIELD_ERRORS.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@13434 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/ref')
| -rw-r--r-- | docs/ref/models/instances.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/ref/models/instances.txt b/docs/ref/models/instances.txt index dd14dd1ce7..1e72e0c662 100644 --- a/docs/ref/models/instances.txt +++ b/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: |
