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

index 081aeff39f4024151428398311820b2333c2bfad..5762774ecbde1b0712e7fdfe815db0d3daa2f0fd 100644 (file)
@@ -16,7 +16,7 @@ class Command(BaseCommand):
     help = "Send a message"
 
     def handle(self, *args, **options):
-        sender = User.objects.get(id=0)
+        sender = User.objects.get(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')