diff --git a/django/contrib/admin/templates/admin/change_list.html b/django/contrib/admin/templates/admin/change_list.html index 4dc9ed52d7..aebd12b957 100644 --- a/django/contrib/admin/templates/admin/change_list.html +++ b/django/contrib/admin/templates/admin/change_list.html @@ -60,11 +60,9 @@ {% if cl.has_filters %}

{% translate 'Filter' %}

- {% if cl.has_filters or cl.search_fields %} - {% if cl.preserved_filters %}

- ✖ {% translate "Clear all filters" %} -

{% endif %} - {% endif %} + {% if cl.preserved_filters %}

+ ✖ {% translate "Clear all filters" %} +

{% endif %} {% for spec in cl.filter_specs %}{% admin_list_filter cl spec %}{% endfor %}
{% endif %}