From 1b0a8019aa23f6758d2c259eaa7646547a1fe5d2 Mon Sep 17 00:00:00 2001 From: Thomas Steen Rasmussen Date: Tue, 17 May 2016 21:42:28 +0200 Subject: [PATCH] where did those quotes come from --- shop/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: