Skip to content
Snippets Groups Projects
Commit 6b37cd94 authored by jan.bednarik's avatar jan.bednarik
Browse files

uniweb: Fix tags filter for articles

parent e7e165d2
No related branches found
No related tags found
2 merge requests!194uniweb: Fix tags filter for articles,!193uniweb: Fix tags filter for articles
Pipeline #2547 passed
......@@ -404,7 +404,9 @@ class UniwebArticlesIndexPage(Page, SubpageMixin, MetadataPageMixin):
articles = articles.filter(uniwebarticlepage__tags__name=tag)
context["articles"] = Paginator(articles, ARTICLES_PER_PAGE).get_page(num)
context["tags"] = UniwebArticleTag.tags_for(UniwebArticlePage)
context["tags"] = UniwebArticleTag.tags_for(UniwebArticlePage).filter(
uniwebarticlepage__in=articles
)
context["active_tag"] = tag
return context
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment