[Django]-Django: How to remove bullet point when printing form errors

6👍

Alternatily to CSS, you can iterate over errors like:

{% for field, error in form.errors.items %}
    {% if field != '__all__' %}{{ field }}{% endif %}
    {{ error | striptags }}
{% endfor %}
👤I S

12👍

This isn’t really a django question, it’s css. But in any case, you need to apply list-style: none to the error list, ie.

.errorlist {
    list-style: none;
}
👤Greg

Leave a comment