{% block filters %}
{% if cl.has_filters %}
<div id="changelist-filter">
<h2>{% trans 'Filter' %}</h2>
{% for spec in cl.filter_specs %}
{% if "somefilter" in spec|slugify %} <!-- The condition works in my project -->
<div class="tag_type">{% admin_list_filter cl spec %}</div> <!-- This is how I add a new class, is there a simpler way to append a class attribute? -->
{% else %}
{% admin_list_filter cl spec %}
{% endif %}
{% endfor %}
</div>
{% endif %}
{% endblock %}