Opened 7 years ago

Closed 7 years ago

Last modified 7 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: UI/UX:

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 7 years ago.
ErrorList -> self.error_class

Download all attachments as: .zip

Change History (4)

Changed 7 years ago by Tim Graham

Attachment: 12001.diff added

ErrorList -> self.error_class

comment:1 Changed 7 years ago by Tim Graham

Has patch: set
Triage Stage: UnreviewedReady for checkin

comment:2 Changed 7 years ago by Russell Keith-Magee

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 Changed 7 years ago by Russell Keith-Magee

(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