where did those quotes come from
This commit is contained in:
parent
42749bacd3
commit
1b0a8019aa
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue