Re-set redeemed property when copying vouchers

This commit is contained in:
Raphael Michel
2019-12-13 15:52:27 +01:00
parent 1d36ef3c24
commit 529e2a0286

View File

@@ -309,6 +309,7 @@ class VoucherBulkCreate(EventPermissionRequiredMixin, CreateView):
if self.copy_from:
i = modelcopy(self.copy_from)
i.pk = None
i.redeemed = 0
kwargs['instance'] = i
else:
kwargs['instance'] = Voucher(event=self.request.event)