list of categories in search_products

This commit is contained in:
Diego Calvo
2021-03-16 15:02:31 +01:00
parent fc7e80eb5c
commit 11465f4a6a
2 changed files with 4 additions and 3 deletions

View File

@@ -144,7 +144,7 @@ def ranked_product_search(keyword, shipping_cost=None, discount=None, category=N
# filter by category
if category is not None:
products_qs = products_qs.filter(category=category)
products_qs = products_qs.filter(category__name__in=category)
# filter by tags
if tags is not None: