forked from CGM_Public/pretix_original
Only expire orders in the evening of their expiry date
This commit is contained in:
@@ -250,7 +250,7 @@ class Order(LoggedModel):
|
||||
@property
|
||||
def is_expired_by_time(self):
|
||||
return (
|
||||
self.status == Order.STATUS_PENDING and self.expires < now()
|
||||
self.status == Order.STATUS_PENDING and self.expires.date() < now().date()
|
||||
and not self.event.settings.get('payment_term_expire_automatically')
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user