{# CSRF token and form-wide errors at the top of a section modal. #} {% csrf_token %} {% if form.non_field_errors %}{% endif %} {% if form.errors or formset.total_error_count %}{% endif %}