refactoring

This commit is contained in:
Mira Weller
2024-01-29 15:46:57 +01:00
parent 6f78085876
commit bca1c10cc4
2 changed files with 1 additions and 3 deletions
@@ -243,7 +243,7 @@
{% if download %}
<div role="cell" class="download-desktop">
{% if line.ticket_download_allowed %}
{% if line in tickets_with_download %}
{% for b in download_buttons %}
<form action="{% if position_page and line.addon_to %}{% eventurl event "presale:event.order.position.download" secret=line.addon_to.web_secret order=order.code output=b.identifier pid=line.pk position=line.addon_to.positionid %}{% elif position_page %}{% eventurl event "presale:event.order.position.download" secret=line.web_secret order=order.code output=b.identifier pid=line.pk position=line.positionid %}{% else %}{% eventurl event "presale:event.order.download" secret=order.secret order=order.code output=b.identifier position=line.pk %}{% endif %}"
method="post" data-asynctask data-asynctask-download class="download-btn-form{% if b.javascript_required %} requirejs{% endif %}">
-2
View File
@@ -208,8 +208,6 @@ class TicketPageMixin:
)
ctx['tickets_with_download'] = [p for p in ctx['cart']['positions'] if p in positions_with_tickets]
for allowed_op in ctx['tickets_with_download']:
allowed_op.ticket_download_allowed = True
ctx['download_buttons'] = self.download_buttons