]> git.parisson.com Git - teleforma.git/commitdiff
fix import
authorGuillaume Pellerin <yomguy@parisson.com>
Sat, 19 Jul 2014 18:27:43 +0000 (20:27 +0200)
committerGuillaume Pellerin <yomguy@parisson.com>
Sat, 19 Jul 2014 18:27:43 +0000 (20:27 +0200)
teleforma/exam/models.py

index 03bd5d2024588194c60bc25c5f2a076e0cecfdad..b40e22e402efdb703c3bc3c650ff98f95ad94a91 100644 (file)
@@ -308,7 +308,7 @@ class Script(BaseResource):
         # self.url = 'http://teleforma.parisson.com/media/scripts/2014/06/24/Gstreamer_monitoring_Pipleline.pdf'
         self.url = settings.MEDIA_URL + unicode(self.file)
 
-        if not '.pdf' in self.file.path or not '.PDF' in self.file.path:
+        if not ('.pdf' in self.file.path or '.PDF' in self.file.path):
             self.reject_reason = 'wrong format'
             self.status = 0
             self.corrector = User.objects.filter(is_superuser=True)[0]