Opened 5 years ago

Closed 5 years ago

#13778 closed (fixed)

Error in documentation code

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

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 Changed 5 years ago by kmtracey

  • Resolution set to fixed
  • Status changed from new to closed

(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