]> git.parisson.com Git - teleforma.git/commitdiff
add debug mode
authorGuillaume Pellerin <yomguy@parisson.com>
Fri, 6 Dec 2013 23:37:24 +0000 (00:37 +0100)
committerGuillaume Pellerin <yomguy@parisson.com>
Fri, 6 Dec 2013 23:37:24 +0000 (00:37 +0100)
teleforma/management/commands/teleforma-message-all-seminar-users.py

index 30e14037ceaf96108223aa104c687980da23fe71..c26a6e00fa294927937c6854a0ffcd53ba7aa5d2 100644 (file)
@@ -69,7 +69,8 @@ class Command(BaseCommand):
                             mess = Message(sender=sender, recipient=user, subject=subject[:119], body=text)
                             mess.moderation_status = 'a'
                             mess.save()
-                            #notify_user(mess, 'acceptance')
+                            if not settings.DEBUG:
+                                notify_user(mess, 'acceptance')
                             
                             print user.username, seminar.title, seminar.expiry_date