diff --git a/shop/views.py b/shop/views.py index e6b4c4af..e1101635 100644 --- a/shop/views.py +++ b/shop/views.py @@ -91,7 +91,7 @@ class ShopIndexView(ListView): if 'category' in self.request.GET: category = self.request.GET.get('category') try: - categoryobj = ProductCategory.objects.get(slug='category') + categoryobj = ProductCategory.objects.get(slug=category) if not categoryobj.public: raise Http404("Category not found") except ProductCategory.DoesNotExist: