Opened 7 years ago

Closed 7 years ago

Last modified 5 years ago

#12716 closed (fixed)

Validation display error in change list.

Reported by: Kieran Brownlees Owned by: nobody
Component: contrib.admin Version: master
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: UI/UX:


In the 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). 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 7 years ago.
Patch for ticket 12716

Download all attachments as: .zip

Change History (4)

Changed 7 years ago by Kieran Brownlees

Attachment: 12716.diff added

Patch for ticket 12716

comment:1 Changed 7 years ago by Alex Gaynor

milestone: 1.2
Needs documentation: unset
Needs tests: unset
Patch needs improvement: unset
Triage Stage: UnreviewedReady for checkin

comment:2 Changed 7 years ago by Jannis Leidel

Resolution: fixed
Status: newclosed

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

comment:3 Changed 5 years ago by Jacob

milestone: 1.2

Milestone 1.2 deleted

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