From: yomguy Date: Wed, 18 Jul 2012 11:55:05 +0000 (+0200) Subject: email even if user inactive X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=d018803c5393e901dfeedc2d414b915cf95f72c7;p=django-postman.git email even if user inactive --- diff --git a/postman/utils.py b/postman/utils.py index 2c4c6d7..9359bc5 100644 --- a/postman/utils.py +++ b/postman/utils.py @@ -91,6 +91,6 @@ def notify_user(object, action): if notification: notification.send(users=[user], label=label, extra_context={'message': object, 'action': action}) else: - if not DISABLE_USER_EMAILING and user.email and user.is_active: + if not DISABLE_USER_EMAILING and user.email: email('postman/email_user_subject.txt', 'postman/email_user.txt',[user.email], object, action)