From 12d76f433028509cad6e8706101e85e11c70e844 Mon Sep 17 00:00:00 2001 From: Thomas Steen Rasmussen Date: Tue, 17 May 2016 07:27:06 +0200 Subject: [PATCH] make order available in epay thanks page --- shop/views.py | 1 + 1 file changed, 1 insertion(+) diff --git a/shop/views.py b/shop/views.py index f8658028..44af0880 100644 --- a/shop/views.py +++ b/shop/views.py @@ -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}))