Opened 14 years ago

Closed 14 years ago

Last modified 13 years ago

#12716 closed (fixed)

Validation display error in change list.

Reported by: Kieran Brownlees Owned by: nobody
Component: contrib.admin Version: dev
Severity: Keywords: change list
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

In the admin change_list.html (http://code.djangoproject.com/browser/django/trunk/django/contrib/admin/templates/admin/change_list.html) line 67:

67 	        <ul class="errorlist">{% for error in cl.formset.non_field_errors %}<li>{{ error }}</li>{% endfor %}</ul>

The method on a formset is actually 'non_form_errors' (not non_field_errors).
http://code.djangoproject.com/browser/django/trunk/django/forms/formsets.py line 212:

212         def non_form_errors(self):
213             """
214             Returns an ErrorList of errors that aren't associated with a particular
215             form -- i.e., from formset.clean(). Returns an empty ErrorList if there
216             are none.
217             """

Attachments (1)

12716.diff (898 bytes ) - added by Kieran Brownlees 14 years ago.
Patch for ticket 12716

Download all attachments as: .zip

Change History (4)

by Kieran Brownlees, 14 years ago

Attachment: 12716.diff added

Patch for ticket 12716

comment:1 by Alex Gaynor, 14 years ago

milestone: 1.2
Triage Stage: UnreviewedReady for checkin

comment:2 by Jannis Leidel, 14 years ago

Resolution: fixed
Status: newclosed

(In [12398]) Fixed #12716 - Typo in the admin change list template. Thanks, kbrownlees.

comment:3 by Jacob, 13 years ago

milestone: 1.2

Milestone 1.2 deleted

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