fix: don't exchange set for new one

This commit is contained in:
moanos [he/him] 2024-11-21 22:49:00 +01:00
parent 8d2d80c30e
commit 14547ad621

View File

@ -240,7 +240,7 @@ class AdoptionNotice(models.Model):
def sexes(self): def sexes(self):
sexes = set() sexes = set()
for animal in self.animals: for animal in self.animals:
sexes.update(animal.sex) sexes.add(animal.sex)
return sexes return sexes
def sex_code(self): def sex_code(self):