Skip to content

Commit

Permalink
Merge pull request getredash#1118 from getredash/feature/params_ui
Browse files Browse the repository at this point in the history
Fix: remove alerts for archived queries
  • Loading branch information
arikfr authored Jun 14, 2016
2 parents b9bcbf0 + a0f96a0 commit c120b00
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions models.py
Original file line number Diff line number Diff line change
Expand Up @@ -641,6 +641,9 @@ def archive(self):
for w in vis.widgets:
w.delete_instance()

for alert in self.alerts:
alert.delete_instance(recursive=True)

self.save()

@classmethod
Expand Down

0 comments on commit c120b00

Please sign in to comment.