mirror of
https://github.com/pretix/pretix.git
synced 2026-05-06 15:24:02 +00:00
Vouchers: Bug in export, default mode
This commit is contained in:
@@ -115,7 +115,7 @@ class Voucher(LoggedModel):
|
||||
verbose_name=_("Price mode"),
|
||||
max_length=100,
|
||||
choices=PRICE_MODES,
|
||||
default='set'
|
||||
default='none'
|
||||
)
|
||||
value = models.DecimalField(
|
||||
verbose_name=_("Voucher value"),
|
||||
|
||||
@@ -78,7 +78,7 @@ class VoucherList(EventPermissionRequiredMixin, ListView):
|
||||
_("Yes") if v.block_quota else _("No"),
|
||||
_("Yes") if v.allow_ignore_quota else _("No"),
|
||||
v.get_price_mode_display(),
|
||||
str(v.value) if v.value else "",
|
||||
str(v.value) if v.value is not None else "",
|
||||
v.tag,
|
||||
str(v.redeemed),
|
||||
str(v.max_usages)
|
||||
|
||||
Reference in New Issue
Block a user