#12716: Validation display error in change list. ----------------------------------+----------------------------------------- Reporter: kbrownlees | Owner: nobody Status: new | Milestone: Component: django.contrib.admin | Version: SVN Keywords: change list | Stage: Unreviewed Has_patch: 1 | ----------------------------------+----------------------------------------- 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: {{{ #!python 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 """ }}} -- Ticket URL: <http://code.djangoproject.com/ticket/12716> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.
