{% if form.errors %}
{% if form.non_field_errors %} {% for error in form.non_field_errors %} {{ error|safe }} {% endfor %} {% endif %}