Commit 2fce8438 authored by Karen Tracey's avatar Karen Tracey
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
parent 9d0b9ad8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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: