From dda5be5513200e55a348d851e84359bce092226e Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Mon, 23 Jun 2014 18:39:25 +0200 Subject: [PATCH] bugfix --- teleforma/exam/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/teleforma/exam/models.py b/teleforma/exam/models.py index eb929ae4..13f1621a 100644 --- a/teleforma/exam/models.py +++ b/teleforma/exam/models.py @@ -315,7 +315,7 @@ def set_file_properties(sender, instance, **kwargs): instance.image = path def submit_to_box(sender, instance, **kwargs): - if instance.file and instance.status = 2: + if instance.file and instance.status == 2: instance.date_submitted = datetime.datetime.now() instance.url = settings.MEDIA_URL + unicode(instance.file) instance.box_uuid = crocodoc.document.upload(url=instance.url) -- 2.39.5