mirror of
https://github.com/status-im/cabot.git
synced 2025-02-24 10:28:06 +00:00
Remove status checks when Instance deleted
This commit is contained in:
parent
8a404c9755
commit
49d6c81865
@ -298,6 +298,10 @@ class Instance(CheckGroupMixin):
|
||||
def active_icmp_status_checks(self):
|
||||
return self.icmp_status_checks().filter(active=True)
|
||||
|
||||
def delete(self, *args, **kwargs):
|
||||
self.icmp_status_checks().delete()
|
||||
return super(Instance, self).delete(*args, **kwargs)
|
||||
|
||||
class Snapshot(models.Model):
|
||||
|
||||
class Meta:
|
||||
|
Loading…
x
Reference in New Issue
Block a user