Add attendee email field (#466)

* Add attendee email field

* exports, tests
This commit is contained in:
Raphael Michel
2017-04-13 22:59:54 +02:00
committed by GitHub
parent 3c59a870e7
commit e4706dd3ba
16 changed files with 155 additions and 4 deletions

View File

@@ -89,6 +89,9 @@ class CSVCheckinList(BaseCheckinList):
if form_data['secrets']:
headers.append(_('Secret'))
if self.event.settings.attendee_emails_asked:
headers.append(_('E-mail'))
for q in questions:
headers.append(str(q.question))
@@ -105,6 +108,8 @@ class CSVCheckinList(BaseCheckinList):
row.append(_('Yes') if op.order.status == Order.STATUS_PAID else _('No'))
if form_data['secrets']:
row.append(op.secret)
if self.event.settings.attendee_emails_asked:
row.append(op.attendee_email)
acache = {}
for a in op.answers.all():
acache[a.question_id] = str(a)