Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

newforms-admin: Fixed #5765 -- non_form_errors now display properly f…

…or inline

formsets. Thanks Honza Kral.


git-svn-id: http://code.djangoproject.com/svn/django/branches/newforms-admin@7609 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 0f3f082ed520fb1627379526220553a013fbc867 1 parent c63faa1
@brosner brosner authored
View
3  django/contrib/admin/templates/admin/edit_inline/stacked.html
@@ -2,6 +2,7 @@
<div class="inline-group">
{{ inline_admin_formset.formset.management_form }}
{# <h3 class="header">{{ inline_admin_formset.opts.verbose_name_plural|title }}</h3> #}
+{{ inline_admin_formset.formset.non_form_errors }}
{% for inline_admin_form in inline_admin_formset %}
<div class="inline-related {% if forloop.last %}last-related{% endif %}">
@@ -22,4 +23,4 @@
{# <ul class="tools"> #}
{# <li><a class="add" href="">Add another {{ inline_admin_formset.opts.verbose_name|title }}</a></li> #}
{# </ul> #}
-</div>
+</div>
View
1  django/contrib/admin/templates/admin/edit_inline/tabular.html
@@ -4,6 +4,7 @@
{{ inline_admin_formset.formset.management_form }}
<fieldset class="module">
<h2>{{ inline_admin_formset.opts.verbose_name_plural|capfirst|escape }}</h2>
+ {{ inline_admin_formset.formset.non_form_errors }}
<table>
<thead><tr>
{% for field in inline_admin_formset.fields %}
Please sign in to comment.
Something went wrong with that request. Please try again.