From 312f22f082e924966e91a5318f5f07565aa72422 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Wed, 23 Jul 2014 01:19:03 +0200 Subject: [PATCH] fix --- teleforma/management/commands/teleforma-exam-message-bug.py | 3 +++ 1 file changed, 3 insertions(+) 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' -- 2.39.5