From 8c0f9af53421aa04ce36b3bf0003cc1f190e710f Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Mon, 23 Jun 2014 18:05:04 +0200 Subject: [PATCH] give the real url too crocodoc --- teleforma/exam/models.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/teleforma/exam/models.py b/teleforma/exam/models.py index 99c9970a..504e80cb 100644 --- a/teleforma/exam/models.py +++ b/teleforma/exam/models.py @@ -278,8 +278,7 @@ class Script(BaseResource): def submit(self): self.date_submitted = datetime.datetime.now() - # self.url = settings.MEDIA_URL + unicode(self.file) - self.url='http://files.parisson.com/pre-barreau/LATRILLE Adeline - Procedure civile 1.pdf' + self.url = settings.MEDIA_URL + unicode(self.file) self.box_uuid = crocodoc.document.upload(url=self.url) self.status = 3 if not self.corrector: -- 2.39.5