mirror of
https://github.com/pretix/pretix.git
synced 2026-05-08 15:44:02 +00:00
Add Seat to Order Data Export
This commit is contained in:
@@ -390,6 +390,11 @@ class OrderListExporter(MultiSheetListExporter):
|
|||||||
_('Pseudonymization ID'),
|
_('Pseudonymization ID'),
|
||||||
]
|
]
|
||||||
|
|
||||||
|
if self.event.seating_plan_id is not None:
|
||||||
|
headers += [
|
||||||
|
_('Seat')
|
||||||
|
]
|
||||||
|
|
||||||
questions = list(Question.objects.filter(event__in=self.events))
|
questions = list(Question.objects.filter(event__in=self.events))
|
||||||
options = {}
|
options = {}
|
||||||
for q in questions:
|
for q in questions:
|
||||||
@@ -471,6 +476,12 @@ class OrderListExporter(MultiSheetListExporter):
|
|||||||
op.voucher.code if op.voucher else '',
|
op.voucher.code if op.voucher else '',
|
||||||
op.pseudonymization_id,
|
op.pseudonymization_id,
|
||||||
]
|
]
|
||||||
|
|
||||||
|
if self.event.seating_plan_id is not None:
|
||||||
|
row += [
|
||||||
|
str(op.seat) if op.seat else ""
|
||||||
|
]
|
||||||
|
|
||||||
acache = {}
|
acache = {}
|
||||||
for a in op.answers.all():
|
for a in op.answers.all():
|
||||||
# We do not want to localize Date, Time and Datetime question answers, as those can lead
|
# We do not want to localize Date, Time and Datetime question answers, as those can lead
|
||||||
|
|||||||
Reference in New Issue
Block a user