From d8a1ec132b44481bb049794c55e36cd3541427d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=AD=C3=B0ir=20Valberg=20Gu=C3=B0mundsson?= Date: Mon, 30 May 2016 18:05:35 +0200 Subject: [PATCH] Use Order.mark_as_paid() in EpayCallbackView --- shop/views.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/shop/views.py b/shop/views.py index 7d35406b..394289f6 100644 --- a/shop/views.py +++ b/shop/views.py @@ -299,9 +299,8 @@ class EpayCallbackView(SingleObjectMixin, View): callback=callback, txnid=query.get('txnid'), ) - ### and mark order as paid - order.paid=True - order.save() + ### and mark order as paid (this will create tickets) + order.mark_as_paid() else: print "valid epay callback with wrong amount detected" else: