forked from GithubBackups/healthchecks
Fix the "send_alert" admin action.
This commit is contained in:
parent
9f69dcb158
commit
32ee6d4ca9
@ -50,7 +50,8 @@ class ChecksAdmin(admin.ModelAdmin):
|
|||||||
|
|
||||||
def send_alert(self, request, qs):
|
def send_alert(self, request, qs):
|
||||||
for check in 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())
|
self.message_user(request, "%d alert(s) sent" % qs.count())
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user