From: Guillaume Pellerin Date: Thu, 14 Nov 2019 14:48:31 +0000 (+0100) Subject: fix period X-Git-Tag: 1.4.1~6 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=a783f4f50ff20c6fbb60ea9f3f5a1d56a408409b;p=teleforma.git fix period --- 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'