Ajout d'un lien vers le tag sur le filtre

This commit is contained in:
Jean-Marie Favreau 2024-11-02 12:39:25 +01:00
parent 3c6c1f7963
commit 0234f27b4b
2 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@
{% if filter.is_active %}
<strong>Filtres&nbsp;: </strong>
{% for t in filter.get_tags %}
{{ t | tag_button }}
{{ t | tag_button:"true" }}
{% endfor %}
{% for t in filter.get_exclude_tags %}
{{ t | tag_button_strike }}

View File

@ -34,7 +34,7 @@ def t_button(tag, url, strike=False, category=None):
@register.filter
def tag_button(tag, link=False, strike=False):
return t_button(tag, reverse_lazy("view_tag", {"tag": tag}) if link else None, strike)
return t_button(tag, reverse_lazy("view_tag", kwargs={"t": tag}) if link else None, strike)
@register.filter