diff --git a/nested_inline/templates/admin/edit_inline/stacked-nested.html b/nested_inline/templates/admin/edit_inline/stacked-nested.html index 0f8cb89..a460d81 100644 --- a/nested_inline/templates/admin/edit_inline/stacked-nested.html +++ b/nested_inline/templates/admin/edit_inline/stacked-nested.html @@ -5,7 +5,7 @@

{{ recursive_formset.opts.verbose_name_plural|title }}

{{ recursive_formset.formset.management_form }} {{ recursive_formset.formset.non_form_errors }} -{% for inline_admin_form in recursive_formset %}
+{% for inline_admin_form in recursive_formset %}

{{ recursive_formset.opts.verbose_name|title }}: {% if inline_admin_form.original %}{{ inline_admin_form.original }}{% else %}#{{ forloop.counter }}{% endif %} {% if inline_admin_form.show_url %}{% trans "View on site" %}{% endif %} {% if recursive_formset.formset.can_delete and inline_admin_form.original %}{{ inline_admin_form.deletion_field.field }} {{ inline_admin_form.deletion_field.label_tag }}{% endif %} diff --git a/nested_inline/templates/admin/edit_inline/tabular-nested.html b/nested_inline/templates/admin/edit_inline/tabular-nested.html index 28b6870..25906a2 100644 --- a/nested_inline/templates/admin/edit_inline/tabular-nested.html +++ b/nested_inline/templates/admin/edit_inline/tabular-nested.html @@ -1,7 +1,7 @@ {% load i18n static admin_modify %}
{% with recursive_formset=inline_admin_formset stacked_template='admin/edit_inline/stacked-nested.html' tabular_template='admin/edit_inline/tabular-nested.html'%} -