Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#12001 closed (fixed)

using form.error_class instead of ErrorList in forms validation docs

Reported by: Suor 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 timo 5 years ago.
ErrorList -> self.error_class

Download all attachments as: .zip

Change History (4)

Changed 5 years ago by timo

ErrorList -> self.error_class

comment:1 Changed 5 years ago by timo

  • Has patch set
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Ready for checkin

comment:2 Changed 5 years ago by russellm

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

(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 5 years ago by russellm

(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