#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)
Change History (4)
by , 15 years ago
Attachment: | 12716.diff added |
---|
comment:1 by , 15 years ago
milestone: | → 1.2 |
---|---|
Triage Stage: | Unreviewed → Ready for checkin |
comment:2 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Patch for ticket 12716