Fix crash in Order.payment_term_last (PRETIXEU-6ZK)

This commit is contained in:
Raphael Michel
2022-07-04 09:36:55 +02:00
parent 1ab701c100
commit 6ee034784d

View File

@@ -843,7 +843,7 @@ class Order(LockModel, LoggedModel):
if terms: if terms:
term_last = min(terms) term_last = min(terms)
else: else:
term_last = None return None
else: else:
term_last = term_last.datetime(self.event).date() term_last = term_last.datetime(self.event).date()
term_last = make_aware(datetime.combine( term_last = make_aware(datetime.combine(