{% load i18n %}
{% csrf_token %} {% if form.non_field_errors %} {{ form.non_field_errors }} {% endif %} {% for field in form.visible_fields %}
{# Include the hidden fields in the form #} {% if forloop.first %} {% for hidden in form.hidden_fields %} {{ hidden }} {% endfor %} {% endif %} {{ field.errors }} {{ field.label_tag }}{{ field }}
{% endfor %}