From: Guillaume Pellerin Date: Tue, 22 Jul 2014 23:19:03 +0000 (+0200) Subject: fix X-Git-Tag: 1.1~353 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=312f22f082e924966e91a5318f5f07565aa72422;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 83861b17..8e4e8069 100644 --- a/teleforma/management/commands/teleforma-exam-message-bug.py +++ b/teleforma/management/commands/teleforma-exam-message-bug.py @@ -10,12 +10,15 @@ from teleforma.exam.models import * import logging import codecs import time, os +from django.utils import translation +from django.conf import settings class Command(BaseCommand): help = "Send a message" def handle(self, *args, **options): + translation.activate(settings.LANGUAGE_CODE) sender = User.objects.filter(is_superuser=True)[0] site = Site.objects.all()[0] subject = 'Erreur dans la transmission de votre copie'