self.request not just request

This commit is contained in:
Thomas Steen Rasmussen 2016-05-17 07:23:46 +02:00
parent 089185f38c
commit 2168477bb4

View file

@ -247,11 +247,11 @@ class EpayFormView(LoginRequiredMixin, EnsureUserOwnsOrderMixin, DetailView):
def get_context_data(self, **kwargs): def get_context_data(self, **kwargs):
order = self.get_object() order = self.get_object()
accept_url = order.get_epay_accept_url(request) accept_url = order.get_epay_accept_url(self.request)
cancel_url = order.get_epay_cancel_url(request) cancel_url = order.get_epay_cancel_url(self.request)
amount = order.total * 100 amount = order.total * 100
epay_hash = calculate_epay_hash(order, request) epay_hash = calculate_epay_hash(order, self.request)
context = super(EpayFormView, self).get_context_data(**kwargs) context = super(EpayFormView, self).get_context_data(**kwargs)
context['merchant_number'] = settings.EPAY_MERCHANT_NUMBER context['merchant_number'] = settings.EPAY_MERCHANT_NUMBER