From: Guillaume Pellerin Date: Wed, 22 Nov 2023 17:02:58 +0000 (+0100) Subject: adapt email templates, fix condition X-Git-Tag: 2.8.1-ae~15 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=4844eb1318c1af62e23557a4ceb0c8551ec49710;p=teleforma.git adapt email templates, fix condition --- 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)