{{ form.formset.management_form }} {% for formset_form in form.formset %}
{{ formset_form.non_field_errors }} {% for field in formset_form %} {% if field.name != "active" %} {% if form.collapsible and not forloop.parentloop.last and forloop.counter0 == 1 %}
{% endif %}

{{ field.errors }} {% if field.widget_type == "checkbox" %} {{ field.label_tag }} {% else %} {{ field }} {% endif %}

{% if form.collapsible and not forloop.parentloop.last and forloop.last %}
{% endif %} {% else %}
{{ field }}
{% endif %} {% endfor %}
{% if formset_form.fields.id.initial %}

{% for field in formset_form %} {% if field.name == "active" and form.activate_url %} {% endif %} {% endfor %}

{% endif %}
{% endfor %}