From 9d88e5d846f7628489d13cce1592d312cafefc82 Mon Sep 17 00:00:00 2001 From: Jonathan Balls Date: Tue, 18 Nov 2014 19:40:03 +0000 Subject: [PATCH] Inactive users are no longer notified --- cabot/cabotapp/alert.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cabot/cabotapp/alert.py b/cabot/cabotapp/alert.py index 0826113..fc8ad18 100644 --- a/cabot/cabotapp/alert.py +++ b/cabot/cabotapp/alert.py @@ -31,7 +31,7 @@ telephone_template = "This is an urgent message from Arachnys monitoring. Servic def send_alert(service, duty_officers=None): - users = service.users_to_notify.all() + users = service.users_to_notify.filter(is_active=True) if service.email_alert: send_email_alert(service, users, duty_officers) if service.hipchat_alert: