diff --git a/suit/templates/admin/change_list.html b/suit/templates/admin/change_list.html index 44efe232..9b9853e8 100644 --- a/suit/templates/admin/change_list.html +++ b/suit/templates/admin/change_list.html @@ -4,14 +4,16 @@ {% block search %}{% suit_search_form cl %}{% endblock %} {% block filters %} - {% if cl.has_filters %} -
{% for spec in cl.filter_specs|suit_list_filter_vertical:cl %} - {% if forloop.first %} -

{% trans 'Filter' %}

- {% endif %} - {% admin_list_filter cl spec %} - {% endfor %}
- {% endif %} + {% with vertical_filters=cl.filter_specs|suit_list_filter_vertical:cl %} + {% if vertical_filters %} +
{% for spec in vertical_filters %} + {% if forloop.first %} +

{% trans 'Filter' %}

+ {% endif %} + {% admin_list_filter cl spec %} + {% endfor %}
+ {% endif %} + {% endwith %} {% endblock %} {% block footer %}