From 94795a53f05f5e2a36d47bcddf7a9d74fc13bbc1 Mon Sep 17 00:00:00 2001 From: Tobias Bengfort Date: Tue, 26 Jan 2021 11:25:33 +0100 Subject: [PATCH] fix blocked in Contact.is_reachable --- castellum/contacts/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/castellum/contacts/models.py b/castellum/contacts/models.py index 6a5144ee0..fdc05c9ac 100644 --- a/castellum/contacts/models.py +++ b/castellum/contacts/models.py @@ -193,7 +193,7 @@ class Contact(TimeStampedModel): self.get_address(), self.phone_number, self.email, - self.guardians.filter(blocked=False).exists(), + [c for c in self.guardians.all() if not c.subject.blocked], ]) @property -- GitLab