From 540546be93e709c720323b06f191f926633e52dd Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Wed, 18 Feb 2015 18:04:16 +0100 Subject: [PATCH] bugfix --- .../management/commands/teleforma-send-subscription-email.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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' -- 2.39.5