diff --git a/django/contrib/admin/templates/admin/edit_inline/stacked.html b/django/contrib/admin/templates/admin/edit_inline/stacked.html
index 2025dd8..8f6fce6 100644
a
|
b
|
|
1 | 1 | {% load i18n admin_static %} |
2 | 2 | <div class="inline-group" id="{{ inline_admin_formset.formset.prefix }}-group"> |
3 | | <h2>{{ inline_admin_formset.opts.verbose_name_plural|title }}</h2> |
| 3 | <h2> |
| 4 | {% with formset_opts=inline_admin_formset.opts max_num=inline_admin_formset.formset.max_num %} |
| 5 | {% if not max_num or max_num > 1 %} |
| 6 | {{ formset_opts.verbose_name_plural|capfirst }} |
| 7 | {% else %} |
| 8 | {{ formset_opts.verbose_name|capfirst }} |
| 9 | {% endif %} |
| 10 | {% endwith %} |
| 11 | </h2> |
4 | 12 | {{ inline_admin_formset.formset.management_form }} |
5 | 13 | {{ inline_admin_formset.formset.non_form_errors }} |
6 | 14 | |
diff --git a/django/contrib/admin/templates/admin/edit_inline/tabular.html b/django/contrib/admin/templates/admin/edit_inline/tabular.html
index f2757ed..ecaf541 100644
a
|
b
|
|
3 | 3 | <div class="tabular inline-related {% if forloop.last %}last-related{% endif %}"> |
4 | 4 | {{ inline_admin_formset.formset.management_form }} |
5 | 5 | <fieldset class="module"> |
6 | | <h2>{{ inline_admin_formset.opts.verbose_name_plural|capfirst }}</h2> |
| 6 | <h2> |
| 7 | {% with formset_opts=inline_admin_formset.opts max_num=inline_admin_formset.formset.max_num %} |
| 8 | {% if not max_num or max_num > 1 %} |
| 9 | {{ formset_opts.verbose_name_plural|capfirst }} |
| 10 | {% else %} |
| 11 | {{ formset_opts.verbose_name|capfirst }} |
| 12 | {% endif %} |
| 13 | {% endwith %} |
| 14 | </h2> |
7 | 15 | {{ inline_admin_formset.formset.non_form_errors }} |
8 | 16 | <table> |
9 | 17 | <thead><tr> |