Show seat in web and PDF check-in list

This commit is contained in:
Raphael Michel
2019-11-22 13:31:17 +01:00
parent 84fb25e4d9
commit 50dabb5b26
5 changed files with 14 additions and 1 deletions

View File

@@ -103,7 +103,7 @@ class CheckInListMixin(BaseExporter):
)
).prefetch_related(
'answers', 'answers__question', 'addon_to__answers', 'addon_to__answers__question'
).select_related('order', 'item', 'variation', 'addon_to', 'order__invoice_address', 'voucher')
).select_related('order', 'item', 'variation', 'addon_to', 'order__invoice_address', 'voucher', 'seat')
if not cl.all_products:
qs = qs.filter(item__in=cl.limit_products.values_list('id', flat=True))
@@ -259,6 +259,7 @@ class PDFCheckinList(ReportlabExportMixin, CheckInListMixin, BaseExporter):
op.order.code,
Paragraph(name, self.get_style()),
Paragraph(str(op.item) + (" " + str(op.variation.value) if op.variation else "") + "<br/>" +
((str(op.seat) + " / ") if op.seat else None) +
money_filter(op.price, self.event.currency), self.get_style()),
]
acache = {}