{% load i18n nested_admin admin_urls %} {% with inline_admin_formset.formset.is_nested as is_nested %} {% with inline_admin_formset.opts as inline_opts %}
{{ inline_admin_formset.formset.management_form }} {{ inline_admin_formset.formset.non_form_errors }} {% with inline_admin_formset.opts.sortable_field_name|default:"" as sortable_field_name %} {% for inline_admin_form in inline_admin_formset|formsetsort:sortable_field_name %} {% endfor %} {% endwith %}
{% blocktrans with verbose_name=inline_admin_formset.opts.verbose_name|capfirst %}Add another {{ verbose_name }}{% endblocktrans %}
{% endwith %}{# ends with inline_admin_formset.opts as inline_opts #} {% endwith %}{# ends {% with inline_admin_formset.formset.is_nested as is_nested %} #}