From: Guillaume Pellerin Date: Thu, 25 Jan 2018 22:29:03 +0000 (+0100) Subject: Fix submit X-Git-Tag: 1.2~10^2~14 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=67b61b31d5e5b75ee633fdeab82608e1637708bf;p=teleforma.git Fix submit --- 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'