From: Guillaume Pellerin Date: Sun, 28 Jan 2024 18:14:43 +0000 (+0100) Subject: fix script uuid symlink (HOTFIX) X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=f0502da8c0cfcf07fda03b7bc89207cf4b4b5b8b;p=teleforma.git fix script uuid symlink (HOTFIX) --- diff --git a/teleforma/exam/models.py b/teleforma/exam/models.py index 5d9d5a2b..b4e3ad74 100755 --- a/teleforma/exam/models.py +++ b/teleforma/exam/models.py @@ -400,7 +400,7 @@ class Script(BaseResource): new_rel = os.sep.join(old_rel_root) + os.sep + str(self.uuid) + ext if not os.path.exists(new_abs): - os.symlink(old_abs, new_abs) + os.symlink(filename + ext, new_abs) if not self.url: self.url = settings.MEDIA_URL + str(new_rel)