From 14679dc0a5a979480aa334e5dc32be3af7a14e36 Mon Sep 17 00:00:00 2001 From: j Date: Fri, 19 Nov 2021 15:32:23 +0100 Subject: [PATCH] render media --- app/event/models.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/event/models.py b/app/event/models.py index 46c751b..393a486 100644 --- a/app/event/models.py +++ b/app/event/models.py @@ -34,6 +34,8 @@ class Event(models.Model): html = '' if self.media and self.media.split('.')[-1] in ('jpg', 'png', 'gif'): html += '' % self.media + elif '<' in self.media: + html = self.media else: html += '' % self.media if self.media_caption: