From: Guillaume Pellerin Date: Wed, 18 Feb 2015 17:05:03 +0000 (+0100) Subject: fix templates X-Git-Tag: 1.1~266 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=3115a1d49336f981d54ccded56b0ad33319733d6;p=teleforma.git fix templates --- diff --git a/teleforma/management/commands/teleforma-send-subscription-email.py b/teleforma/management/commands/teleforma-send-subscription-email.py index 448c2c31..dcbb3353 100644 --- a/teleforma/management/commands/teleforma-send-subscription-email.py +++ b/teleforma/management/commands/teleforma-send-subscription-email.py @@ -39,9 +39,9 @@ class Command(BaseCommand): message_template = 'teleforma/messages/email_inscr_internautes.txt' else: message_template = 'teleforma/messages/email_inscr_presentiels.txt' - subject = render_to_string(self.subject_template, ctx_dict) + subject = render_to_string(subject_template, ctx_dict) subject = ''.join(subject.splitlines()) - message = render_to_string(self.message_template, ctx_dict) + message = render_to_string(message_template, ctx_dict) send_mail(subject, message, settings.DEFAULT_FROM_EMAIL, [student.user.email], fail_silently=False) def handle(self, *args, **options):