Vouchers: Fix CSV export for all-product vouchers

This commit is contained in:
Raphael Michel
2019-12-09 10:23:42 +01:00
parent 3f77d34026
commit 2a929200b5

View File

@@ -77,6 +77,8 @@ class VoucherList(PaginationMixin, EventPermissionRequiredMixin, ListView):
prod = '%s' % str(v.item)
elif v.quota:
prod = _('Any product in quota "{quota}"').format(quota=str(v.quota.name))
else:
prod = _('Any product')
row = [
v.code,
v.valid_until.isoformat() if v.valid_until else "",