mirror of
https://github.com/pretix/pretix.git
synced 2026-05-05 15:14:04 +00:00
Fix TypeError in Order.ticket_download_available on "empty" orders (#2176)
Co-authored-by: alice <tickets-dev@kulturkosmos.de> Co-authored-by: nd <git@notandy.de> Co-authored-by: alice <tickets-dev@kulturkosmos.de>
This commit is contained in:
@@ -783,6 +783,7 @@ class Order(LockModel, LoggedModel):
|
||||
def ticket_download_available(self):
|
||||
return self.event.settings.ticket_download and (
|
||||
self.event.settings.ticket_download_date is None
|
||||
or self.ticket_download_date is None
|
||||
or now() > self.ticket_download_date
|
||||
) and (
|
||||
self.status == Order.STATUS_PAID
|
||||
|
||||
Reference in New Issue
Block a user