summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
authorKaren Tracey <kmtracey@gmail.com>2008-11-09 18:51:28 +0000
committerKaren Tracey <kmtracey@gmail.com>2008-11-09 18:51:28 +0000
commitc367e2869eaa28598aab7aa7ea2e76b596fe09b2 (patch)
tree43ba6cd621d57c47b9fca1efaf71abfc46cd2917 /django
parentb81bc22ad241d2ff72344885a44eb61f0cf9a99c (diff)
Fixed #9514 -- Made admin change_form template correctly recognize/report when a form has only a single error.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@9371 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django')
-rw-r--r--django/contrib/admin/templates/admin/change_form.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/contrib/admin/templates/admin/change_form.html b/django/contrib/admin/templates/admin/change_form.html
index ca9db6c1c6..ab63ecf6e0 100644
--- a/django/contrib/admin/templates/admin/change_form.html
+++ b/django/contrib/admin/templates/admin/change_form.html
@@ -35,7 +35,7 @@
{% if save_on_top %}{% submit_row %}{% endif %}
{% if errors %}
<p class="errornote">
- {% blocktrans count errors.items|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>
<ul class="errorlist">{% for error in adminform.form.non_field_errors %}<li>{{ error }}</li>{% endfor %}</ul>
{% endif %}