This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
nielsperetzke
/
healthchecks
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
32
Wiki
Activity
Browse Source
Fix the "send_alert" admin action.
pull/248/head
Pēteris Caune
6 years ago
parent
9f69dcb158
commit
32ee6d4ca9
No known key found for this signature in database
GPG Key ID:
E28D7679E9A9EDE2
1 changed files
with
2 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-1
hc/api/admin.py
+ 2
- 1
hc/api/admin.py
View File
@ -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
(
)
)
Write
Preview
Loading…
Cancel
Save