mirror of https://github.com/django/django.git
Fixed #11681. Fixed display of non_field_errors and non_form_errors in the admin. Thanks, nessita.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12541 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
fd233f40d1
commit
3f443363f9
|
@ -38,7 +38,7 @@
|
||||||
<p class="errornote">
|
<p class="errornote">
|
||||||
{% blocktrans count errors|length as counter %}Please correct the error below.{% plural %}Please correct the errors below.{% endblocktrans %}
|
{% blocktrans count errors|length as counter %}Please correct the error below.{% plural %}Please correct the errors below.{% endblocktrans %}
|
||||||
</p>
|
</p>
|
||||||
<ul class="errorlist">{% for error in adminform.form.non_field_errors %}<li>{{ error }}</li>{% endfor %}</ul>
|
{{ adminform.form.non_field_errors }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% for fieldset in adminform %}
|
{% for fieldset in adminform %}
|
||||||
|
|
|
@ -67,7 +67,7 @@
|
||||||
<p class="errornote">
|
<p class="errornote">
|
||||||
{% blocktrans count cl.formset.errors|length as counter %}Please correct the error below.{% plural %}Please correct the errors below.{% endblocktrans %}
|
{% blocktrans count cl.formset.errors|length as counter %}Please correct the error below.{% plural %}Please correct the errors below.{% endblocktrans %}
|
||||||
</p>
|
</p>
|
||||||
<ul class="errorlist">{% for error in cl.formset.non_form_errors %}<li>{{ error }}</li>{% endfor %}</ul>
|
{{ cl.formset.non_form_errors }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<div class="module{% if cl.has_filters %} filtered{% endif %}" id="changelist">
|
<div class="module{% if cl.has_filters %} filtered{% endif %}" id="changelist">
|
||||||
{% block search %}{% search_form cl %}{% endblock %}
|
{% block search %}{% search_form cl %}{% endblock %}
|
||||||
|
|
Loading…
Reference in New Issue