]> git.parisson.com Git - teleforma.git/commitdiff
fix
authorGuillaume Pellerin <yomguy@parisson.com>
Tue, 22 Jul 2014 23:14:59 +0000 (01:14 +0200)
committerGuillaume Pellerin <yomguy@parisson.com>
Tue, 22 Jul 2014 23:14:59 +0000 (01:14 +0200)
teleforma/management/commands/teleforma-exam-message-bug.py

index c2cd522dd04c64376050b3638e9cbf5739f4ac4e..83861b171528c9da39d610b54944186b2535e434 100644 (file)
@@ -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)