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

index 448c2c31548548c84eda0812ce9c3c747649ba4a..dcbb33532b4d17b13d8943fda18314f6910b768e 100644 (file)
@@ -39,9 +39,9 @@ class Command(BaseCommand):
             message_template = 'teleforma/messages/email_inscr_internautes.txt'
         else:
             message_template = 'teleforma/messages/email_inscr_presentiels.txt'
-        subject = render_to_string(self.subject_template, ctx_dict)
+        subject = render_to_string(subject_template, ctx_dict)
         subject = ''.join(subject.splitlines())
-        message = render_to_string(self.message_template, ctx_dict)
+        message = render_to_string(message_template, ctx_dict)
         send_mail(subject, message, settings.DEFAULT_FROM_EMAIL, [student.user.email], fail_silently=False)
 
     def handle(self, *args, **options):