Add order date to CSV attendee list

This commit is contained in:
Raphael Michel
2019-02-22 14:09:42 +01:00
parent 5096121ac7
commit 7302bba602
2 changed files with 13 additions and 10 deletions

View File

@@ -320,6 +320,7 @@ class CSVCheckinList(CheckInListMixin, ListExporter):
headers.append(_('Company'))
headers.append(_('Voucher code'))
headers.append(_('Order date'))
yield headers
for op in qs:
@@ -372,6 +373,7 @@ class CSVCheckinList(CheckInListMixin, ListExporter):
row.append(ia.company)
row.append(op.voucher.code if op.voucher else "")
row.append(op.order.datetime.astimezone(self.event.timezone).strftime('%Y-%m-%d'))
yield row
def get_filename(self):