From a783f4f50ff20c6fbb60ea9f3f5a1d56a408409b Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Thu, 14 Nov 2019 15:48:31 +0100 Subject: [PATCH] fix period --- .../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 71d718ea..4f8439d7 100644 --- a/teleforma/management/commands/teleforma-send-subscription-email.py +++ b/teleforma/management/commands/teleforma-send-subscription-email.py @@ -35,10 +35,10 @@ class Command(BaseCommand): site = Site.objects.get_current() if student.platform_only: mode = 'E-learning' - message = period.message_platform + message = student.period.message_platform else: mode = 'Presentielle' - message = period.message_local + message = student.period.message_local ctx_dict = {'site': site, 'organization': settings.TELEMETA_ORGANIZATION, 'student': student, 'mode': mode} subject_template = 'teleforma/messages/email_inscr_sujet.txt' -- 2.39.5