]> git.parisson.com Git - teleforma.git/commitdiff
fix period
authorGuillaume Pellerin <yomguy@parisson.com>
Thu, 14 Nov 2019 14:48:31 +0000 (15:48 +0100)
committerGuillaume Pellerin <yomguy@parisson.com>
Thu, 14 Nov 2019 14:48:54 +0000 (15:48 +0100)
teleforma/management/commands/teleforma-send-subscription-email.py

index 71d718ea35eebd6c5998a859b7a194db51ce6c28..4f8439d7a3397f2e8bf76cce9810b52f345abda4 100644 (file)
@@ -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'