From: Guillaume Pellerin Date: Tue, 22 Jul 2014 23:14:35 +0000 (+0200) Subject: fix X-Git-Tag: 1.1~356 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=dfff3f4537f42a04f4f21d62f7ecdcb4b220a270;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 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')