diff --git a/src/pretix/eventyay_common/tasks.py b/src/pretix/eventyay_common/tasks.py index 7148a202e..10d35aad8 100644 --- a/src/pretix/eventyay_common/tasks.py +++ b/src/pretix/eventyay_common/tasks.py @@ -114,6 +114,7 @@ def send_event_webhook(self, user_id, event, action): "locales": event.get("locales"), "user_email": user.email, "action": action, + "is_video_creation": event.get("is_video_creation"), } headers = get_header_token(user_id) @@ -166,6 +167,9 @@ def create_world(self, is_video_creation, event_data): "title": title, "timezone": event_timezone, "locale": locale, + "traits": { + 'attendee': 'eventyay-video-event-{}'.format(event_slug), + } } headers = {"Authorization": "Bearer " + token} diff --git a/src/pretix/eventyay_common/views/event.py b/src/pretix/eventyay_common/views/event.py index f6c8590fe..40f61df4f 100644 --- a/src/pretix/eventyay_common/views/event.py +++ b/src/pretix/eventyay_common/views/event.py @@ -234,6 +234,7 @@ def done(self, form_list, form_dict, **kwargs): "timezone": str(basics_data.get("timezone")), "locale": basics_data.get("locale"), "locales": foundation_data.get("locales"), + "is_video_creation": foundation_data.get("is_video_creation"), } send_event_webhook.delay( user_id=self.request.user.id, event=event_dict, action="create" @@ -268,6 +269,7 @@ def done(self, form_list, form_dict, **kwargs): "timezone": str(basics_data.get("timezone")), "locale": event.settings.locale, "locales": event.settings.locales, + "is_video_creation": foundation_data.get("is_video_creation"), } send_event_webhook.delay( user_id=self.request.user.id, event=event_dict, action="create" @@ -408,6 +410,7 @@ def post(self, request, *args, **kwargs): "timezone": str(event.settings.timezone), "locale": event.settings.locale, "locales": event.settings.locales, + "is_video_creation": event.is_video_creation, } send_event_webhook.delay( user_id=self.request.user.id, event=event_dict, action="update"