Opened 14 years ago

Closed 14 years ago

#13778 closed (fixed)

Error in documentation code

Reported by: Cesar Canassa Owned by: nobody
Component: Documentation Version: 1.2
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

There is an error in this page of the documentation:

http://docs.djangoproject.com/en/1.2/ref/models/instances/#id1

The following code:

from django.core.validators import ValidationError, NON_FIELD_ERRORS
try:
    article.full_clean():
except ValidationError, e:
    non_field_errors = e.message_dict[NON_FIELD_ERRORS]

should be:

from django.core.validators import ValidationError, NON_FIELD_ERRORS
try:
    article.full_clean()
except ValidationError, e:
    non_field_errors = e.message_dict[NON_FIELD_ERRORS]

Change History (1)

comment:1 by Karen Tracey, 14 years ago

Resolution: fixed
Status: newclosed

(In [13355]) Fixed #13778: Removed a stray colon in a code example. Thanks canassa.

Note: See TracTickets for help on using tickets.
Back to Top