From: Guillaume Pellerin Date: Sun, 3 Aug 2014 23:15:37 +0000 (+0200) Subject: test X-Git-Tag: 1.1~314 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=050a264915c228c2fc2a8f0e9edb496bd62084fb;p=teleforma.git test --- diff --git a/teleforma/exam/models.py b/teleforma/exam/models.py index 8bcb25b1..cce4898e 100644 --- a/teleforma/exam/models.py +++ b/teleforma/exam/models.py @@ -362,6 +362,7 @@ class Script(BaseResource): return mime_type = mimetype_file(self.file.path) + print mime_type if not 'pdf' in mime_type: self.auto_reject('wrong format') return