Correctly copy seats when copying events

This commit is contained in:
Raphael Michel
2020-01-27 10:49:43 +01:00
parent 68ec37605f
commit faa6f0e0a3

View File

@@ -633,6 +633,8 @@ class Event(EventMixin, LoggedModel):
for s in other.seats.filter(subevent__isnull=True):
s.pk = None
s.event = self
if s.product_id:
s.product = item_map[s.product_id]
s.save()
for s in other.settings._objects.all():