diff --git a/src/program/models.py b/src/program/models.py index f761c016..6d458d20 100644 --- a/src/program/models.py +++ b/src/program/models.py @@ -543,9 +543,11 @@ class EventInstance(CampRelatedModel): 'location_icon': self.location.icon, 'timeslots': self.timeslots, 'video_recording': self.event.video_recording, - 'video_url': self.event.video_url, } + if self.event.video_url: + data['video_url'] = self.event.video_url + if user and user.is_authenticated: is_favorited = user.favorites.filter(event_instance=self).exists() data['is_favorited'] = is_favorited