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:
|
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:
|
||||||
|
|
Loading…
Reference in a new issue