where did those quotes come from

This commit is contained in:
Thomas Steen Rasmussen 2016-05-17 21:42:28 +02:00
parent 42749bacd3
commit 1b0a8019aa

View file

@ -91,7 +91,7 @@ class ShopIndexView(ListView):
if 'category' in self.request.GET: if 'category' in self.request.GET:
category = self.request.GET.get('category') category = self.request.GET.get('category')
try: try:
categoryobj = ProductCategory.objects.get(slug='category') categoryobj = ProductCategory.objects.get(slug=category)
if not categoryobj.public: if not categoryobj.public:
raise Http404("Category not found") raise Http404("Category not found")
except ProductCategory.DoesNotExist: except ProductCategory.DoesNotExist: