product search only for active products
This commit is contained in:
@@ -169,7 +169,7 @@ def product_search(request):
|
||||
|
||||
if q == '':
|
||||
# filter entire queryset
|
||||
products_qs = Product.objects.all()
|
||||
products_qs = Product.objects.filter(active=True)
|
||||
if tags:
|
||||
products_qs = Product.objects.filter(tags=tags)
|
||||
if category:
|
||||
|
||||
Reference in New Issue
Block a user