From ee829a2f693e816365f92cc430926c2f11e5db23 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Fri, 18 Jul 2014 10:46:04 +0200 Subject: [PATCH] fix path --- teleforma/exam/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/teleforma/exam/models.py b/teleforma/exam/models.py index 07491ff4..86748834 100644 --- a/teleforma/exam/models.py +++ b/teleforma/exam/models.py @@ -283,7 +283,7 @@ class Script(BaseResource): filename, ext = os.path.splitext(old_list[-1]) new = os.sep.join(path) + os.sep + slugify(filename) + ext os.rename(old, new) - self.file = new + self.file.path = new self.save() def submit(self): -- 2.39.5