diff --git a/app/event/models.py b/app/event/models.py index 83397f4..09de647 100644 --- a/app/event/models.py +++ b/app/event/models.py @@ -21,7 +21,6 @@ class Event(models.Model): media = models.TextField(blank=True, null=True) media_caption = models.TextField(blank=True, null=True, default='') - data = models.JSONField(default=dict, blank=True, editable=False) def __str__(self): @@ -39,7 +38,7 @@ class Event(models.Model): else: url = self.media if 'youtube.com/watch' in url: - url = url.replace('/watch', '/embed') + url = url.replace('/watch?=v', '/embed/') html += '' % url if self.media_caption: html = '
%s
%s
' % (html, self.media_caption)