mirror of
https://github.com/pretix/pretix.git
synced 2026-05-05 15:14:04 +00:00
Improve performance of voucher bulk creation
This commit is contained in:
@@ -179,6 +179,6 @@ class VoucherBulkForm(VoucherForm):
|
||||
data['code'] = code
|
||||
data['bulk'] = True
|
||||
del data['codes']
|
||||
obj.save()
|
||||
objs.append(obj)
|
||||
Voucher.objects.bulk_create(objs)
|
||||
return objs
|
||||
|
||||
Reference in New Issue
Block a user