Order details: Do not show download note when disabled on product level

This commit is contained in:
Raphael Michel
2019-11-11 12:38:16 +01:00
parent 0bf3ee1a6f
commit 8dbba1cfd3

View File

@@ -124,7 +124,10 @@ class TicketPageMixin:
can_download = all([r for rr, r in allow_ticket_download.send(self.request.event, order=self.order)])
if self.request.event.settings.ticket_download_date:
ctx['ticket_download_date'] = self.order.ticket_download_date
ctx['can_download'] = can_download and self.order.ticket_download_available and self.order.positions_with_tickets
ctx['can_download'] = (
can_download and self.order.ticket_download_available and
list(self.order.positions_with_tickets)
)
ctx['download_buttons'] = self.download_buttons
ctx['backend_user'] = (