remove extra mark_as_cancelled method

This commit is contained in:
Thomas Steen Rasmussen 2019-03-17 15:21:03 +01:00
parent ecfe7dc385
commit a5e67fcb8c

View file

@ -232,6 +232,7 @@ class Order(CreatedUpdatedModel):
messages.error(request, "Order %s is paid, cannot cancel a paid order!" % self.pk) messages.error(request, "Order %s is paid, cannot cancel a paid order!" % self.pk)
else: else:
self.cancelled = True self.cancelled = True
self.open = None
self.save() self.save()
def is_not_handed_out(self): def is_not_handed_out(self):
@ -264,11 +265,6 @@ class Order(CreatedUpdatedModel):
else: else:
return False return False
def mark_as_cancelled(self):
self.cancelled = True
self.open = None
self.save()
@property @property
def coinifyapiinvoice(self): def coinifyapiinvoice(self):
if not self.coinify_api_invoices.exists(): if not self.coinify_api_invoices.exists():