From e7fd0f116bd9bac1fcb7683eb5c90a2fcadd6c80 Mon Sep 17 00:00:00 2001 From: Martin Gross Date: Thu, 17 Sep 2020 09:53:26 +0200 Subject: [PATCH] Add Seat to Order Data Export --- src/pretix/base/exporters/orderlist.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/pretix/base/exporters/orderlist.py b/src/pretix/base/exporters/orderlist.py index bc9038a13..1470a3fed 100644 --- a/src/pretix/base/exporters/orderlist.py +++ b/src/pretix/base/exporters/orderlist.py @@ -390,6 +390,11 @@ class OrderListExporter(MultiSheetListExporter): _('Pseudonymization ID'), ] + if self.event.seating_plan_id is not None: + headers += [ + _('Seat') + ] + questions = list(Question.objects.filter(event__in=self.events)) options = {} for q in questions: @@ -471,6 +476,12 @@ class OrderListExporter(MultiSheetListExporter): op.voucher.code if op.voucher else '', op.pseudonymization_id, ] + + if self.event.seating_plan_id is not None: + row += [ + str(op.seat) if op.seat else "" + ] + acache = {} for a in op.answers.all(): # We do not want to localize Date, Time and Datetime question answers, as those can lead