fixed product views to only list active products
This commit is contained in:
@@ -119,7 +119,7 @@ def find_related_products_v6(keyword, shipping_cost=None, discount=None, categor
|
||||
|
||||
products_qs = Product.objects.annotate(
|
||||
rank=SearchRank(vector, query)
|
||||
).filter(rank__gt=0.05)
|
||||
).filter(rank__gt=0.05, active=True)
|
||||
|
||||
# filter by category
|
||||
if category is not None:
|
||||
|
||||
Reference in New Issue
Block a user