From 0ea51f47b318fa073165fc5ed6f34ddd4f71aaa3 Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Sat, 31 Oct 2020 13:56:47 +0100 Subject: [PATCH] Display the sent video, not the example video... --- apps/participation/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/participation/models.py b/apps/participation/models.py index f968b91..b8a3bd5 100644 --- a/apps/participation/models.py +++ b/apps/participation/models.py @@ -211,7 +211,7 @@ class Video(models.Model): If the video is uploaded on Youtube, search in the URL the video code. """ return re.compile("(https?://|)(www\\.|)(youtube\\.com/watch\\?v=|youtu\\.be/)([a-zA-Z0-9-_]*)?.*?")\ - .match("https://www.youtube.com/watch?v=73nsrixx7eI").group(4) + .match(self.link).group(4) def as_iframe(self): """