mirror of
https://github.com/pretix/pretix.git
synced 2026-05-03 14:54:04 +00:00
Deal with cancelling memberships (#2130)
This commit is contained in:
@@ -599,6 +599,8 @@ class Order(LockModel, LoggedModel):
|
||||
for gc in op.issued_gift_cards.all():
|
||||
if gc.value != op.price:
|
||||
return False
|
||||
if op.granted_memberships.with_usages().filter(usages__gt=0):
|
||||
return False
|
||||
if self.user_cancel_deadline and now() > self.user_cancel_deadline:
|
||||
return False
|
||||
if self.status == Order.STATUS_PENDING:
|
||||
|
||||
Reference in New Issue
Block a user