feat: Add number of animals per sex to metrics

This commit is contained in:
2025-07-20 15:43:59 +02:00
parent cd1cdd2e0b
commit 5898fbf86d
2 changed files with 20 additions and 4 deletions

View File

@@ -360,7 +360,7 @@ class AdoptionNotice(models.Model):
def num_per_sex(self):
num_per_sex = dict()
for sex in SexChoices:
num_per_sex[sex] = self.animals.filter(sex=sex).count
num_per_sex[sex] = self.animals.filter(sex=sex).count()
return num_per_sex
@property