]> git.parisson.com Git - teleforma.git/commitdiff
Fix submit
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Thu, 25 Jan 2018 22:29:03 +0000 (23:29 +0100)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Thu, 25 Jan 2018 22:29:03 +0000 (23:29 +0100)
teleforma/exam/models.py

index b731ed8e4686e27f7eba4ac4918a11f36994189f..57343e08a1610cd1e7e700238fb78240944849e7 100644 (file)
@@ -486,6 +486,8 @@ def set_file_properties(sender, instance, **kwargs):
             instance.sha1 = sha1sum_file(instance.file.path)
         if not instance.url:
             instance.uuid_link()
+        if not instance.corrector:
+            instance.submit()
         if hasattr(instance, 'image'):
             if not instance.image:
                 path = cache_path + os.sep + instance.uuid + '.jpg'