From 46d33373f4d56f76bfb62d93bcb023255626f833 Mon Sep 17 00:00:00 2001 From: Dmitry Novikov Date: Fri, 8 Feb 2019 17:55:39 +0300 Subject: [PATCH] Fix --- devapp/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/devapp/views.py b/devapp/views.py index bc99f0f..0d2c845 100644 --- a/devapp/views.py +++ b/devapp/views.py @@ -707,9 +707,9 @@ class OnDeviceMonitoringEvent(global_base_views.SecureApiView): } recipients = UserProfile.objects.get_profiles_by_group( - device_down.group.pk) + device_down.group.pk).filter(flags=UserProfile.flags.notify_mon) - user_ids = tuple(recipient.pk for recipient in recipients.only('pk').iterator() if recipient.flags.notify_mon) + user_ids = tuple(recipient.pk for recipient in recipients.only('pk').iterator()) text = gettext(notify_text) % { 'device_name': "%s(%s) %s" % ( device_down.ip_address,