From 4844eb1318c1af62e23557a4ceb0c8551ec49710 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Wed, 22 Nov 2023 18:02:58 +0100 Subject: [PATCH] adapt email templates, fix condition --- .../management/commands/teleforma-send-subscription-email.py | 4 ++-- teleforma/templates/teleforma/messages/email_inscr_sujet.txt | 2 +- teleforma/views/core.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/teleforma/management/commands/teleforma-send-subscription-email.py b/teleforma/management/commands/teleforma-send-subscription-email.py index 07631101..fcc0178f 100644 --- a/teleforma/management/commands/teleforma-send-subscription-email.py +++ b/teleforma/management/commands/teleforma-send-subscription-email.py @@ -42,8 +42,8 @@ class Command(BaseCommand): subject_template = 'teleforma/messages/email_inscr_sujet.txt' subject = render_to_string(subject_template, ctx_dict) subject = ''.join(subject.splitlines()) - # message_template = 'teleforma/messages/email_inscription-new.txt' - # message = render_to_string(message_template, ctx_dict) + message_template = 'teleforma/messages/email_inscription-new.txt' + 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): diff --git a/teleforma/templates/teleforma/messages/email_inscr_sujet.txt b/teleforma/templates/teleforma/messages/email_inscr_sujet.txt index 35c7e98b..bcddf657 100644 --- a/teleforma/templates/teleforma/messages/email_inscr_sujet.txt +++ b/teleforma/templates/teleforma/messages/email_inscr_sujet.txt @@ -1 +1 @@ -Validation de votre inscription au CRFPA du Pré-Barreau +Validation de votre inscription aux formations Avocats Etrangers du Pré-Barreau diff --git a/teleforma/views/core.py b/teleforma/views/core.py index ed37cb61..ee7a5046 100644 --- a/teleforma/views/core.py +++ b/teleforma/views/core.py @@ -780,7 +780,7 @@ class ConferenceView(CourseAccessMixin, DetailView): stream_type=stream_type, streaming=True) stream.save() - if not conference.web_class_group and settings.TELECASTER_LIVE_TWEETER: + if settings.TELECASTER_LIVE_TWEETER: try: site = get_current_site(request) live_message(site, conference) -- 2.39.5