From: Guillaume Pellerin Date: Fri, 6 Dec 2013 23:37:24 +0000 (+0100) Subject: add debug mode X-Git-Tag: 2.8.1-pro~470^2 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=97df10af70c5b67745c7c2ce58cdc9707880cd92;p=teleforma.git add debug mode --- diff --git a/teleforma/management/commands/teleforma-message-all-seminar-users.py b/teleforma/management/commands/teleforma-message-all-seminar-users.py index 30e14037..c26a6e00 100644 --- a/teleforma/management/commands/teleforma-message-all-seminar-users.py +++ b/teleforma/management/commands/teleforma-message-all-seminar-users.py @@ -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