{% comment %} Wrapper around the inline's own template. Override per inline with `inline_controls_template` (e.g. a template that extends this one). The JS relies on the id, the data-inline-controls attribute and the inline-controls-* classes: keep them when overriding blocks. {% endcomment %} {% load inline_controls %} {% with controls=inline_admin_formset.formset.inline_controls opts=inline_admin_formset.opts %} {% if controls %} {% block container %}