list of categories in search_products
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user