Skip to content

Commit a1bff5f

Browse files
committed
[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
1 parent f48cf95 commit a1bff5f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

django/contrib/admin/templates/admin/change_form.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
<p class="errornote">
3939
{% blocktrans count errors|length as counter %}Please correct the error below.{% plural %}Please correct the errors below.{% endblocktrans %}
4040
</p>
41-
<ul class="errorlist">{% for error in adminform.form.non_field_errors %}<li>{{ error }}</li>{% endfor %}</ul>
41+
{{ adminform.form.non_field_errors }}
4242
{% endif %}
4343

4444
{% for fieldset in adminform %}

django/contrib/admin/templates/admin/change_list.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
<p class="errornote">
5555
{% blocktrans count cl.formset.errors|length as counter %}Please correct the error below.{% plural %}Please correct the errors below.{% endblocktrans %}
5656
</p>
57-
<ul class="errorlist">{% for error in cl.formset.non_form_errors %}<li>{{ error }}</li>{% endfor %}</ul>
57+
{{ cl.formset.non_form_errors }}
5858
{% endif %}
5959
<div class="module{% if cl.has_filters %} filtered{% endif %}" id="changelist">
6060
{% block search %}{% search_form cl %}{% endblock %}

0 commit comments

Comments
 (0)