Only expire orders in the evening of their expiry date

This commit is contained in:
Raphael Michel
2016-09-02 09:52:36 +02:00
parent 70d6cb4255
commit 972ad211bf
3 changed files with 5 additions and 3 deletions

View File

@@ -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')
)