forked from CGM_Public/pretix_original
Correctly copy seats when copying events
This commit is contained in:
@@ -633,6 +633,8 @@ class Event(EventMixin, LoggedModel):
|
|||||||
for s in other.seats.filter(subevent__isnull=True):
|
for s in other.seats.filter(subevent__isnull=True):
|
||||||
s.pk = None
|
s.pk = None
|
||||||
s.event = self
|
s.event = self
|
||||||
|
if s.product_id:
|
||||||
|
s.product = item_map[s.product_id]
|
||||||
s.save()
|
s.save()
|
||||||
|
|
||||||
for s in other.settings._objects.all():
|
for s in other.settings._objects.all():
|
||||||
|
|||||||
Reference in New Issue
Block a user