mirror of
https://github.com/pretix/pretix.git
synced 2026-05-09 15:54:03 +00:00
Add seat to voucher CSV export
This commit is contained in:
@@ -65,7 +65,7 @@ class VoucherList(PaginationMixin, EventPermissionRequiredMixin, ListView):
|
|||||||
|
|
||||||
headers = [
|
headers = [
|
||||||
_('Voucher code'), _('Valid until'), _('Product'), _('Reserve quota'), _('Bypass quota'),
|
_('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)
|
writer.writerow(headers)
|
||||||
|
|
||||||
@@ -89,7 +89,8 @@ class VoucherList(PaginationMixin, EventPermissionRequiredMixin, ListView):
|
|||||||
str(v.value) if v.value is not None else "",
|
str(v.value) if v.value is not None else "",
|
||||||
v.tag,
|
v.tag,
|
||||||
str(v.redeemed),
|
str(v.redeemed),
|
||||||
str(v.max_usages)
|
str(v.max_usages),
|
||||||
|
str(v.seat) if v.seat else ""
|
||||||
]
|
]
|
||||||
writer.writerow(row)
|
writer.writerow(row)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user