Opened 12 months ago

Closed 12 months ago

Last modified 12 months ago

#23258 closed Bug (worksforme)

Add note that Form.add_error is new in 1.7 in 'Form and field validation'

Reported by: barklund Owned by: nobody
Component: Documentation Version: 1.7-rc-2
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: yes

Description

It's a tiny documentation thing, but the 'Form and field validation' docs for Django 1.7 does not mention that Form.add_error is a new method in Django 1.7.

Change History (2)

comment:1 Changed 12 months ago by timgraham

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to worksforme
  • Status changed from new to closed

If you click through to the Form.add_error() reference, you'll see the note there. I don't think we should add a note everywhere that the method appears.

comment:2 Changed 12 months ago by areski

add_error has been added from this PR: https://github.com/django/django/pull/1443

On the release notes there is a clear mention that add_error is added in 1.7: https://docs.djangoproject.com/en/dev/releases/1.7/#form-add-error

Here a PR in case we really want this, here a PR https://github.com/django/django/pull/3036

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