forked from CGM_Public/pretix_original
Re-set redeemed property when copying vouchers
This commit is contained in:
@@ -309,6 +309,7 @@ class VoucherBulkCreate(EventPermissionRequiredMixin, CreateView):
|
|||||||
if self.copy_from:
|
if self.copy_from:
|
||||||
i = modelcopy(self.copy_from)
|
i = modelcopy(self.copy_from)
|
||||||
i.pk = None
|
i.pk = None
|
||||||
|
i.redeemed = 0
|
||||||
kwargs['instance'] = i
|
kwargs['instance'] = i
|
||||||
else:
|
else:
|
||||||
kwargs['instance'] = Voucher(event=self.request.event)
|
kwargs['instance'] = Voucher(event=self.request.event)
|
||||||
|
|||||||
Reference in New Issue
Block a user