]> git.parisson.com Git - teleforma.git/commitdiff
fix path
authorGuillaume Pellerin <yomguy@parisson.com>
Fri, 18 Jul 2014 08:46:04 +0000 (10:46 +0200)
committerGuillaume Pellerin <yomguy@parisson.com>
Fri, 18 Jul 2014 08:46:04 +0000 (10:46 +0200)
teleforma/exam/models.py

index 07491ff43328418e04d03b3f13ea2d3f51b8d67e..867488346bf843cac8405c1771e73947bbeb4d8b 100644 (file)
@@ -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):