{% load bootstrap %} {{ formset.non_form_errors.as_ul }} {{ formset.management_form }} {% for form in formset.forms %} {% if forloop.first %} {% for field in form.visible_fields %} {% endfor %} {% endif %} {% for field in form.visible_fields %} {% if field.name != "DELETE" and field.name != "priority" %} {% endif %} {% endfor %} {% endfor %}
{% if field.name != "DELETE" %} {{ field.label|safe|capfirst }} {% endif %} {{ forloop.counter }}
{% if forloop.first %} {{ form.non_field_errors }} {% for hidden in form.hidden_fields %}{{ hidden }}{% endfor %} {% endif %} {{ field.errors.as_ul }} {{ field | bootstrap }}