return super dispatch

This commit is contained in:
Thomas Steen Rasmussen 2016-05-17 20:42:02 +02:00
parent b52be5af8c
commit 17f17d18f7

View file

@ -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')