From: Guillaume Pellerin Date: Tue, 22 Jul 2014 23:14:16 +0000 (+0200) Subject: fix X-Git-Tag: 1.1~357 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=33450f68b0ac80a8cc4d8928cbc50856dfffd177;p=teleforma.git fix --- diff --git a/teleforma/management/commands/teleforma-exam-message-bug.py b/teleforma/management/commands/teleforma-exam-message-bug.py index 081aeff3..5762774e 100644 --- a/teleforma/management/commands/teleforma-exam-message-bug.py +++ b/teleforma/management/commands/teleforma-exam-message-bug.py @@ -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')