From: Guillaume Pellerin Date: Fri, 18 Jul 2014 08:46:04 +0000 (+0200) Subject: fix path X-Git-Tag: 1.1~409 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=ee829a2f693e816365f92cc430926c2f11e5db23;p=teleforma.git fix path --- 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):