From 227fa4d5a8faa41859319dc6173e211732a877bc Mon Sep 17 00:00:00 2001 From: moanos Date: Sat, 2 Nov 2024 09:43:02 +0100 Subject: [PATCH] refactor: rename --- src/fellchensammlung/models.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/fellchensammlung/models.py b/src/fellchensammlung/models.py index 8efbe0a..40094d5 100644 --- a/src/fellchensammlung/models.py +++ b/src/fellchensammlung/models.py @@ -287,10 +287,10 @@ class AdoptionNotice(models.Model): return self.adoptionnoticestatus.is_active @property - def is_to_be_checked(self, include_active=False): + def is_disabled_unchecked(self): if not hasattr(self, 'adoptionnoticestatus'): return False - return self.adoptionnoticestatus.is_to_be_checked or (include_active and self.adoptionnoticestatus.is_active) + return self.adoptionnoticestatus.is_disabled_unchecked def set_closed(self): self.last_checked = timezone.now() @@ -367,7 +367,7 @@ class AdoptionNoticeStatus(models.Model): return self.major_status == self.ACTIVE @property - def is_to_be_checked(self): + def is_disabled_unchecked(self): return self.major_status == self.DISABLED and self.minor_status == "unchecked" @staticmethod