diff --git a/store/views.py b/store/views.py index af688e1..7b7bd49 100644 --- a/store/views.py +++ b/store/views.py @@ -97,7 +97,7 @@ class CategoryView(CategoryBaseView, TemplateView): q = self.request.GET.get('q', '') self.products_qs = Product.objects.filter(title__icontains=q).order_by('-pk') retval['brands'] = list(set(map(lambda item: item.brand, self.products_qs))) - if self.is_sale: + elif self.is_sale: self.products_qs = Product.objects.filter(variations__discount__gt=0).distinct().order_by('-pk') retval['brands'] = list(set(map(lambda item: item.brand, self.products_qs))) else: