pass pk not orderid

This commit is contained in:
Thomas Steen Rasmussen 2016-05-16 16:36:15 +02:00
parent 2117e80cf6
commit f88172cd97

View file

@ -78,19 +78,20 @@ class OrderDetailView(LoginRequiredMixin, DetailView):
# Mark the order as closed
order.open = None
order.save()
reverses = {
Order.CREDIT_CARD: reverse_lazy(
'shop:epay_form',
kwargs={'orderid': order.id}
kwargs={'pk': order.id}
),
Order.BLOCKCHAIN: reverse_lazy(
'shop:coinify_pay',
kwargs={'orderid': order.id}
kwargs={'pk': order.id}
),
Order.BANK_TRANSFER: reverse_lazy(
'shop:bank_transfer',
kwargs={'orderid': order.id}
kwargs={'pk': order.id}
)
}