remove extra mark_as_cancelled method
This commit is contained in:
parent
ecfe7dc385
commit
a5e67fcb8c
|
@ -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():
|
||||
|
|
Loading…
Reference in a new issue