{% for hidden in form.hidden_fields %} {{ hidden }} {% endfor %}
{% if form.non_field_errors %}
    {% for error in form.non_field_errors %}
        <div class="alert alert-danger">
            <strong>Error:</strong> {{ error|escape }}
        </div>
    {% endfor %}
{% endif %}