Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[1.1.X] Fixed #11681. Fixed display of non_field_errors and non_form_…

…errors in the admin. Backport of r12541 from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.1.X@12542 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit a1bff5f823687ba9c3b83915e28f35e20fe5641a 1 parent f48cf95
@jkocherhans jkocherhans authored
View
2  django/contrib/admin/templates/admin/change_form.html
@@ -38,7 +38,7 @@
<p class="errornote">
{% blocktrans count errors|length as counter %}Please correct the error below.{% plural %}Please correct the errors below.{% endblocktrans %}
</p>
- <ul class="errorlist">{% for error in adminform.form.non_field_errors %}<li>{{ error }}</li>{% endfor %}</ul>
+ {{ adminform.form.non_field_errors }}
{% endif %}
{% for fieldset in adminform %}
View
2  django/contrib/admin/templates/admin/change_list.html
@@ -54,7 +54,7 @@
<p class="errornote">
{% blocktrans count cl.formset.errors|length as counter %}Please correct the error below.{% plural %}Please correct the errors below.{% endblocktrans %}
</p>
- <ul class="errorlist">{% for error in cl.formset.non_form_errors %}<li>{{ error }}</li>{% endfor %}</ul>
+ {{ cl.formset.non_form_errors }}
{% endif %}
<div class="module{% if cl.has_filters %} filtered{% endif %}" id="changelist">
{% block search %}{% search_form cl %}{% endblock %}
Please sign in to comment.
Something went wrong with that request. Please try again.