mirror of
https://github.com/pretix/pretix.git
synced 2026-05-01 00:32:39 +00:00
Order details: Do not show download note when disabled on product level
This commit is contained in:
@@ -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'] = (
|
||||
|
||||
Reference in New Issue
Block a user