Add seat to voucher CSV export

This commit is contained in:
Raphael Michel
2019-12-11 17:30:53 +01:00
parent cd55146867
commit 8156cdd539

View File

@@ -65,7 +65,7 @@ class VoucherList(PaginationMixin, EventPermissionRequiredMixin, ListView):
headers = [
_('Voucher code'), _('Valid until'), _('Product'), _('Reserve quota'), _('Bypass quota'),
_('Price effect'), _('Value'), _('Tag'), _('Redeemed'), _('Maximum usages')
_('Price effect'), _('Value'), _('Tag'), _('Redeemed'), _('Maximum usages'), _('Seat')
]
writer.writerow(headers)
@@ -89,7 +89,8 @@ class VoucherList(PaginationMixin, EventPermissionRequiredMixin, ListView):
str(v.value) if v.value is not None else "",
v.tag,
str(v.redeemed),
str(v.max_usages)
str(v.max_usages),
str(v.seat) if v.seat else ""
]
writer.writerow(row)