missing dispatch super()

This commit is contained in:
Thomas Steen Rasmussen 2016-05-29 16:40:32 +02:00
parent c5c53daa39
commit 83563e8cb3

View file

@ -117,7 +117,6 @@ class ShopIndexView(ListView):
return context return context
class ProductDetailView(LoginRequiredMixin, FormView, DetailView): class ProductDetailView(LoginRequiredMixin, FormView, DetailView):
model = Product model = Product
template_name = 'product_detail.html' template_name = 'product_detail.html'
@ -316,6 +315,10 @@ class EpayThanksView(LoginRequiredMixin, EnsureUserOwnsOrderMixin, EnsureClosedO
# and ugly querystring, redirect user to the clean url # and ugly querystring, redirect user to the clean url
return HttpResponseRedirect(reverse('shop:epay_thanks', kwargs={'pk': self.get_object().pk})) return HttpResponseRedirect(reverse('shop:epay_thanks', kwargs={'pk': self.get_object().pk}))
return super(EpayThanksView, self).dispatch(
request, *args, **kwargs
)
################################################################################# #################################################################################
class BankTransferView(LoginRequiredMixin, EnsureUserOwnsOrderMixin, EnsureUnpaidOrderMixin, EnsureOrderHasProductsMixin, SingleObjectMixin, View): class BankTransferView(LoginRequiredMixin, EnsureUserOwnsOrderMixin, EnsureUnpaidOrderMixin, EnsureOrderHasProductsMixin, SingleObjectMixin, View):