From: Guillaume Pellerin Date: Thu, 25 Jan 2018 23:07:07 +0000 (+0100) Subject: Fix status X-Git-Tag: 1.2~10^2~10 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=c5f99ac3193ed011142d06b202f7c6f90278cc6b;p=teleforma.git Fix status --- diff --git a/teleforma/exam/models.py b/teleforma/exam/models.py index d4bf2384..b38114e2 100644 --- a/teleforma/exam/models.py +++ b/teleforma/exam/models.py @@ -449,6 +449,7 @@ class Script(BaseResource): # self.box_upload() if not self.corrector: self.auto_set_corrector() + self.status = 3 def mark(self): self.date_marked = datetime.datetime.now() @@ -496,7 +497,7 @@ def set_file_properties(sender, instance, **kwargs): trig_save = True if trig_save: super(sender, instance).save() - + # if hasattr(instance, 'image'): # if not instance.image: # path = cache_path + os.sep + instance.uuid + '.jpg'