From 17f17d18f7e164c327d6d798e68e4dc1d7870175 Mon Sep 17 00:00:00 2001 From: Thomas Steen Rasmussen Date: Tue, 17 May 2016 20:42:02 +0200 Subject: [PATCH] return super dispatch --- shop/views.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/shop/views.py b/shop/views.py index abdf2366..f19ebad9 100644 --- a/shop/views.py +++ b/shop/views.py @@ -174,6 +174,10 @@ class ProductDetailView(LoginRequiredMixin, FormView, DetailView): ### this product is not publicly available raise Http404("Product not found") + return super(ProductDetailView, self).dispatch( + request, *args, **kwargs + ) + def form_valid(self, form): product = self.get_object() quantity = form.cleaned_data.get('quantity')