From: Radek Czajka Date: Mon, 17 Jun 2019 12:24:16 +0000 (+0200) Subject: Minor fix: mark_safe in template tag for headers. X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/ace92112e99e3f48466e4d230087c3ab40187450 Minor fix: mark_safe in template tag for headers. --- diff --git a/src/catalogue/templatetags/catalogue_tags.py b/src/catalogue/templatetags/catalogue_tags.py index ef0ea5dcc..2670e58db 100644 --- a/src/catalogue/templatetags/catalogue_tags.py +++ b/src/catalogue/templatetags/catalogue_tags.py @@ -44,8 +44,8 @@ def html_title_from_tags(tags): if len(tags) < 2: return title_from_tags(tags) template = Template("{{ category }}: {{ tag.name }}") - return capfirst(",
".join( - template.render(Context({'tag': tag, 'category': _(tag.category)})) for tag in tags)) + return mark_safe(capfirst(",
".join( + template.render(Context({'tag': tag, 'category': _(tag.category)})) for tag in tags))) def simple_title(tags):