From dfff3f4537f42a04f4f21d62f7ecdcb4b220a270 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Wed, 23 Jul 2014 01:14:35 +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 5762774e..c2cd522d 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(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') -- 2.39.5