]> git.parisson.com Git - teleforma.git/commitdiff
bugfix
authorGuillaume Pellerin <yomguy@parisson.com>
Wed, 18 Feb 2015 17:04:16 +0000 (18:04 +0100)
committerGuillaume Pellerin <yomguy@parisson.com>
Wed, 18 Feb 2015 17:04:16 +0000 (18:04 +0100)
teleforma/management/commands/teleforma-send-subscription-email.py

index 887fd23c47da72d4d19a503de634d3001557deb4..448c2c31548548c84eda0812ce9c3c747649ba4a 100644 (file)
@@ -33,7 +33,7 @@ class Command(BaseCommand):
 
     def email(self, student):
         site = Site.objects.get_current()
-        ctx_dict = {'site': site, 'organization': settings.TELEMETA_ORGANIZATION, 'usr': user}
+        ctx_dict = {'site': site, 'organization': settings.TELEMETA_ORGANIZATION, 'usr': student.user}
         subject_template = 'teleforma/messages/email_inscr_sujet.txt'
         if student.platform_only:
             message_template = 'teleforma/messages/email_inscr_internautes.txt'