[Answered ]-How to put the 'non_field_errors' at the end of the form in Django-crispy-forms

1đź‘Ť

From crispy docs:

If you are rendering a formset using {% crispy %} tag and it has non_form_errors to display, they are rendered in a div. You can set the title of the div with this attribute. Example: “Formset Errors”.

you may have not any errors. you can show them with:

{% if form.non_field_errors %}
<ul>
    {% for error in form.non_field_errors %}
    <li>{{error}}</li>
    {% endfor %}
</ul>
{% endif %}
👤mrash

Leave a comment