From a5e67fcb8ce4c8564031b6471324487abc3e8833 Mon Sep 17 00:00:00 2001 From: Thomas Steen Rasmussen Date: Sun, 17 Mar 2019 15:21:03 +0100 Subject: [PATCH] remove extra mark_as_cancelled method --- src/shop/models.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/shop/models.py b/src/shop/models.py index a30bfb6e..0bdfb668 100644 --- a/src/shop/models.py +++ b/src/shop/models.py @@ -232,6 +232,7 @@ class Order(CreatedUpdatedModel): messages.error(request, "Order %s is paid, cannot cancel a paid order!" % self.pk) else: self.cancelled = True + self.open = None self.save() def is_not_handed_out(self): @@ -264,11 +265,6 @@ class Order(CreatedUpdatedModel): else: return False - def mark_as_cancelled(self): - self.cancelled = True - self.open = None - self.save() - @property def coinifyapiinvoice(self): if not self.coinify_api_invoices.exists():