From cb434e55434f4aa65c473b64864e812291585efa Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Thu, 23 Nov 2017 10:16:20 +0100 Subject: [PATCH] fix new template --- .../commands/teleforma-send-subscription-email-test.py | 2 +- .../management/commands/teleforma-send-subscription-email.py | 2 +- .../{email_inscription-test.txt => email_inscription-new.txt} | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename teleforma/templates/teleforma/messages/{email_inscription-test.txt => email_inscription-new.txt} (100%) diff --git a/teleforma/management/commands/teleforma-send-subscription-email-test.py b/teleforma/management/commands/teleforma-send-subscription-email-test.py index b753aa8a..771a78b7 100644 --- a/teleforma/management/commands/teleforma-send-subscription-email-test.py +++ b/teleforma/management/commands/teleforma-send-subscription-email-test.py @@ -40,7 +40,7 @@ class Command(BaseCommand): mode = 'Presentielle' ctx_dict = {'site': site, 'organization': settings.TELEMETA_ORGANIZATION, 'student': student, 'mode': mode} subject_template = 'teleforma/messages/email_inscr_sujet.txt' - message_template = 'teleforma/messages/email_inscription-test.txt' + message_template = 'teleforma/messages/email_inscription-new.txt' subject = render_to_string(subject_template, ctx_dict) subject = ''.join(subject.splitlines()) message = render_to_string(message_template, ctx_dict) diff --git a/teleforma/management/commands/teleforma-send-subscription-email.py b/teleforma/management/commands/teleforma-send-subscription-email.py index 594805f1..1fb769e3 100644 --- a/teleforma/management/commands/teleforma-send-subscription-email.py +++ b/teleforma/management/commands/teleforma-send-subscription-email.py @@ -39,7 +39,7 @@ class Command(BaseCommand): mode = 'Presentielle' ctx_dict = {'site': site, 'organization': settings.TELEMETA_ORGANIZATION, 'student': student, 'mode': mode} subject_template = 'teleforma/messages/email_inscr_sujet.txt' - message_template = 'teleforma/messages/email_inscription.txt' + message_template = 'teleforma/messages/email_inscription-new.txt' subject = render_to_string(subject_template, ctx_dict) subject = ''.join(subject.splitlines()) message = render_to_string(message_template, ctx_dict) diff --git a/teleforma/templates/teleforma/messages/email_inscription-test.txt b/teleforma/templates/teleforma/messages/email_inscription-new.txt similarity index 100% rename from teleforma/templates/teleforma/messages/email_inscription-test.txt rename to teleforma/templates/teleforma/messages/email_inscription-new.txt -- 2.39.5