5👍
If you, like me, still want to display ALL errors at once, you can loop over form.errors.items.
This line:
{{ form.errors }}
Becomes this: (or similar)
<ul class="errorlist">
{% for key, value in form.errors.items %}
<li>{% if key != '__all__' %}{{ key }} {% endif %}{{ value }}</li>
{% endfor %}
</ul>
- Customizing django admin ChangeForm template / adding custom content
- Extending generic view classes for common get_context_data
- How to pass data between django views
Source:stackexchange.com