From: Guillaume Pellerin Date: Wed, 18 Feb 2015 17:04:16 +0000 (+0100) Subject: bugfix X-Git-Tag: 1.1~267 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=540546be93e709c720323b06f191f926633e52dd;p=teleforma.git bugfix --- diff --git a/teleforma/management/commands/teleforma-send-subscription-email.py b/teleforma/management/commands/teleforma-send-subscription-email.py index 887fd23c..448c2c31 100644 --- a/teleforma/management/commands/teleforma-send-subscription-email.py +++ b/teleforma/management/commands/teleforma-send-subscription-email.py @@ -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'