From 3115a1d49336f981d54ccded56b0ad33319733d6 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Wed, 18 Feb 2015 18:05:03 +0100 Subject: [PATCH] fix templates --- .../management/commands/teleforma-send-subscription-email.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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): -- 2.39.5