self.get_object().pk please

This commit is contained in:
Thomas Steen Rasmussen 2016-05-29 16:27:38 +02:00
parent 8a0eaa0c0b
commit d3c65e1c23

View file

@ -308,7 +308,7 @@ class EpayThanksView(LoginRequiredMixin, EnsureUserOwnsOrderMixin, EnsureClosedO
if request.GET:
# epay redirects the user back to our accepturl with a long
# and ugly querystring, redirect user to the clean url
return HttpResponseRedirect(reverse('shop:epay_thanks', kwargs={'pk': self.pk}))
return HttpResponseRedirect(reverse('shop:epay_thanks', kwargs={'pk': self.get_object().pk}))
else:
return super(EpayThanksView, self).get(
request, *args, **kwargs