feat: Filter adoption notices to show only active ones

This commit is contained in:
2024-05-31 16:00:52 +02:00
parent 195a5ab26a
commit 71e69356b8
2 changed files with 10 additions and 3 deletions

View File

@@ -256,6 +256,10 @@ class AdoptionNotice(models.Model):
domain = urlparse(self.further_information).netloc
return f"<a href='{self.further_information}'>{domain}</a>"
@property
def is_active(self):
return self.status.is_active
class Animal(models.Model):
MALE_NEUTERED = "M_N"