pass pk not orderid
This commit is contained in:
parent
2117e80cf6
commit
f88172cd97
|
@ -78,19 +78,20 @@ class OrderDetailView(LoginRequiredMixin, DetailView):
|
||||||
|
|
||||||
# Mark the order as closed
|
# Mark the order as closed
|
||||||
order.open = None
|
order.open = None
|
||||||
|
order.save()
|
||||||
|
|
||||||
reverses = {
|
reverses = {
|
||||||
Order.CREDIT_CARD: reverse_lazy(
|
Order.CREDIT_CARD: reverse_lazy(
|
||||||
'shop:epay_form',
|
'shop:epay_form',
|
||||||
kwargs={'orderid': order.id}
|
kwargs={'pk': order.id}
|
||||||
),
|
),
|
||||||
Order.BLOCKCHAIN: reverse_lazy(
|
Order.BLOCKCHAIN: reverse_lazy(
|
||||||
'shop:coinify_pay',
|
'shop:coinify_pay',
|
||||||
kwargs={'orderid': order.id}
|
kwargs={'pk': order.id}
|
||||||
),
|
),
|
||||||
Order.BANK_TRANSFER: reverse_lazy(
|
Order.BANK_TRANSFER: reverse_lazy(
|
||||||
'shop:bank_transfer',
|
'shop:bank_transfer',
|
||||||
kwargs={'orderid': order.id}
|
kwargs={'pk': order.id}
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue