Code

Opened 5 years ago

Closed 5 years ago

Last modified 3 years ago

#12586 closed (fixed)

Name error in the model validtion docs

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

Description

http://docs.djangoproject.com/en/dev/ref/models/instances/#validating-objects contains the following text:

try:
    article.full_validate()
except ValidationError, e:
    # Do something based on the errors contained in e.error_dict.
    # Display them to a user, or handle them programatically.

The full_validate method was renamed full_clean.

Attachments (0)

Change History (2)

comment:1 Changed 5 years ago by jkocherhans

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

(In [12209]) Fixed #12586. Corrected a typo in the validation docs. Thanks, phyfus.

comment:2 Changed 3 years ago by jacob

  • milestone 1.2 deleted

Milestone 1.2 deleted

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.