Vouchers: Bug in export, default mode

This commit is contained in:
Raphael Michel
2016-12-22 17:54:24 +01:00
parent 3db4833290
commit 70fa7eac6b
2 changed files with 2 additions and 2 deletions

View File

@@ -115,7 +115,7 @@ class Voucher(LoggedModel):
verbose_name=_("Price mode"), verbose_name=_("Price mode"),
max_length=100, max_length=100,
choices=PRICE_MODES, choices=PRICE_MODES,
default='set' default='none'
) )
value = models.DecimalField( value = models.DecimalField(
verbose_name=_("Voucher value"), verbose_name=_("Voucher value"),

View File

@@ -78,7 +78,7 @@ class VoucherList(EventPermissionRequiredMixin, ListView):
_("Yes") if v.block_quota else _("No"), _("Yes") if v.block_quota else _("No"),
_("Yes") if v.allow_ignore_quota else _("No"), _("Yes") if v.allow_ignore_quota else _("No"),
v.get_price_mode_display(), v.get_price_mode_display(),
str(v.value) if v.value 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)