Opened 15 years ago

Closed 14 years ago

Last modified 14 years ago

#12001 closed (fixed)

using form.error_class instead of ErrorList in forms validation docs

Reported by: Alexander Schepanovski Owned by: nobody
Component: Documentation Version: 1.1
Severity: Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

On page http://docs.djangoproject.com/en/dev/ref/forms/validation/ example shows adding errors to form._error using ErrorList.
Using self.error_class would be cleaner

Attachments (1)

12001.diff (1.0 KB ) - added by Tim Graham 14 years ago.
ErrorList -> self.error_class

Download all attachments as: .zip

Change History (4)

by Tim Graham, 14 years ago

Attachment: 12001.diff added

ErrorList -> self.error_class

comment:1 by Tim Graham, 14 years ago

Has patch: set
Triage Stage: UnreviewedReady for checkin

comment:2 by Russell Keith-Magee, 14 years ago

Resolution: fixed
Status: newclosed

(In [13221]) Fixed #12001 -- Modified the example of form validation to use the form's error class, rather than assuming ErrorList. Thanks to Suor for the report, and timo for the patch.

comment:3 by Russell Keith-Magee, 14 years ago

(In [13226]) [1.1.X] Fixed #12001 -- Modified the example of form validation to use the form's error class, rather than assuming ErrorList. Thanks to Suor for the report, and timo for the patch.

Backport of r13221 from trunk.

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