forked from CGM_Public/pretix_original
Do not offer manual expiry for orders in approval process
This commit is contained in:
@@ -830,7 +830,7 @@ class Order(LockModel, LoggedModel):
|
||||
@property
|
||||
def is_expired_by_time(self):
|
||||
return (
|
||||
self.status == Order.STATUS_PENDING and self.expires < now()
|
||||
self.status == Order.STATUS_PENDING and not self.require_approval and self.expires < now()
|
||||
and not self.event.settings.get('payment_term_expire_automatically')
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user