diff --git a/shop/views.py b/shop/views.py index b45bfcfb..abdf2366 100644 --- a/shop/views.py +++ b/shop/views.py @@ -91,7 +91,8 @@ class ShopIndexView(ListView): if 'category' in self.request.GET: category = self.request.GET.get('category') context['products'] = context['products'].filter( - category__slug=category + category__slug=category, + public=True, ) context['current_category'] = category context['categories'] = ProductCategory.objects.annotate(