make order available in epay thanks page

This commit is contained in:
Thomas Steen Rasmussen 2016-05-17 07:27:06 +02:00
parent 2168477bb4
commit 12d76f4330
1 changed files with 1 additions and 0 deletions

View File

@ -299,6 +299,7 @@ class EpayThanksView(LoginRequiredMixin, EnsureUserOwnsOrderMixin, DetailView):
template_name = 'epay_thanks.html'
def dispatch(self, request, *args, **kwargs):
order = self.get_object()
if order.open:
### this order is open, what is the user doing here?
return HttpResponseRedirect(reverse_lazy('shop:order_detail', kwargs={'pk': order.pk}))