From 32ee6d4ca981e796f2f39c865128fb9313cfa140 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C4=93teris=20Caune?= Date: Thu, 2 May 2019 14:06:56 +0300 Subject: [PATCH] Fix the "send_alert" admin action. --- hc/api/admin.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hc/api/admin.py b/hc/api/admin.py index 6f011267..d7494be5 100644 --- a/hc/api/admin.py +++ b/hc/api/admin.py @@ -50,7 +50,8 @@ class ChecksAdmin(admin.ModelAdmin): def send_alert(self, request, qs): for check in qs: - check.send_alert() + for channel in check.channel_set.all(): + channel.notify(check) self.message_user(request, "%d alert(s) sent" % qs.count())