From f88172cd97deed2a3986f94d66ca9b046b8d4cfd Mon Sep 17 00:00:00 2001 From: Thomas Steen Rasmussen Date: Mon, 16 May 2016 16:36:15 +0200 Subject: [PATCH] pass pk not orderid --- shop/views.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/shop/views.py b/shop/views.py index f0f214b6..ceabaadc 100644 --- a/shop/views.py +++ b/shop/views.py @@ -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} ) }