Add option for list filter quick remove. #183

* add option for list filter quick remove

* move transform from css to python

* make template tag more resilient for unusual filters

* fix tests

* rename field, move rendering to template, change style

* fix tests
This commit is contained in:
Éric
2022-10-11 12:15:21 -04:00
committed by GitHub
parent de2979219e
commit f8ace75f36
8 changed files with 101 additions and 16 deletions
@@ -0,0 +1,6 @@
{% load admin_interface_tags %}
{% if spec.lookup_val or spec.value %}
<div class="changelist-filter-clear"><a href="{% admin_interface_clear_filter_qs cl spec %}">
{{ title|capfirst }}: <span>{{ selected_value }}</span> &#10006;
</a></div>
{% endif %}