return super dispatch
This commit is contained in:
parent
b52be5af8c
commit
17f17d18f7
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue