From 67b61b31d5e5b75ee633fdeab82608e1637708bf Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Thu, 25 Jan 2018 23:29:03 +0100 Subject: [PATCH] Fix submit --- teleforma/exam/models.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/teleforma/exam/models.py b/teleforma/exam/models.py index b731ed8e..57343e08 100644 --- a/teleforma/exam/models.py +++ b/teleforma/exam/models.py @@ -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' -- 2.39.5