Skip to content

Commit

Permalink
Merge pull request #6197 from escattone/fix-1957
Browse files Browse the repository at this point in the history
ensure distinct topics when filtering by products
  • Loading branch information
escattone committed Aug 22, 2024
2 parents 01f6881 + 71d0e8d commit 6ce9b4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kitsune/questions/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ def question_list(request, product_slug=None, topic_slug=None):
# List of topics to fill the selector.
topic_list = Topic.active.filter(in_aaq=True, visible=True)
if product_slugs:
topic_list = topic_list.filter(products__in=products)
topic_list = topic_list.filter(products__in=products).distinct()
else:
topic_list = topic_list.filter(in_nav=True)

Expand Down

0 comments on commit 6ce9b4d

Please sign in to comment.