From 33450f68b0ac80a8cc4d8928cbc50856dfffd177 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Wed, 23 Jul 2014 01:14:16 +0200 Subject: [PATCH] fix --- teleforma/management/commands/teleforma-exam-message-bug.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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') -- 2.39.5