From: Guillaume Pellerin Date: Tue, 22 Jul 2014 23:14:59 +0000 (+0200) Subject: fix X-Git-Tag: 1.1~355 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=bdbb7a4157dbc2517e0993ef35d4a4d06576b4e4;p=teleforma.git fix --- diff --git a/teleforma/management/commands/teleforma-exam-message-bug.py b/teleforma/management/commands/teleforma-exam-message-bug.py index c2cd522d..83861b17 100644 --- a/teleforma/management/commands/teleforma-exam-message-bug.py +++ b/teleforma/management/commands/teleforma-exam-message-bug.py @@ -23,7 +23,7 @@ class Command(BaseCommand): print scripts.count() for script in scripts: - context = {'script': self, 'site': site} + context = {'script': script, 'site': site} text = render_to_string('exam/messages/script_fix.txt', context) print text mess = Message(sender=sender, recipient=script.author, subject=subject[:119], body=text)