]> git.parisson.com Git - teleforma.git/commitdiff
fix
authorGuillaume Pellerin <yomguy@parisson.com>
Tue, 22 Jul 2014 23:14:35 +0000 (01:14 +0200)
committerGuillaume Pellerin <yomguy@parisson.com>
Tue, 22 Jul 2014 23:14:35 +0000 (01:14 +0200)
teleforma/management/commands/teleforma-exam-message-bug.py

index 5762774ecbde1b0712e7fdfe815db0d3daa2f0fd..c2cd522dd04c64376050b3638e9cbf5739f4ac4e 100644 (file)
@@ -16,7 +16,7 @@ class Command(BaseCommand):
     help = "Send a message"
 
     def handle(self, *args, **options):
-        sender = User.objects.get(is_superuser=True)[0]
+        sender = User.objects.filter(is_superuser=True)[0]
         site = Site.objects.all()[0]
         subject = 'Erreur dans la transmission de votre copie'
         scripts = Script.objects.filter(file='scripts/2014/07/22/home')