{% csrf_token %} {% comment %} this determines to the post which form this is {% endcomment %} {% if form_name == 'tbl_vacuum_form' %} {% comment %}vacuum forms is a stack of checkboxes so It would be nice if the fields are part of their label elements{% endcomment %} {% for field in form %} {% endfor %} {% else %} {% for field in form %}
{{ field }}
{% endfor %} {% endif %}