From 60a3f218571a8ae35d8f0e223e52fb020b0f238d Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Mon, 28 May 2018 15:49:32 +0200 Subject: [PATCH] Fix error in voucher CSV export --- src/pretix/control/views/vouchers.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pretix/control/views/vouchers.py b/src/pretix/control/views/vouchers.py index fd192c2e80..9f8f5e30e0 100644 --- a/src/pretix/control/views/vouchers.py +++ b/src/pretix/control/views/vouchers.py @@ -65,11 +65,11 @@ class VoucherList(PaginationMixin, EventPermissionRequiredMixin, ListView): for v in self.get_queryset(): if v.item: if v.variation: - prod = '%s – %s' % (str(v.item.name), str(v.variation.name)) + prod = '%s – %s' % (str(v.item), str(v.variation)) else: - prod = '%s' % str(v.item.name) + prod = '%s' % str(v.item) elif v.quota: - prod = _('Any product in quota "{quota}"').format(quota=str(v.quota.name)) + prod = _('Any product in quota "{quota}"').format(uota=str(v.quota.name)) row = [ v.code, v.valid_until.isoformat() if v.valid_until else "",