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):
sexes = set()
for animal in self.animals:
sexes.update(animal.sex)
sexes.add(animal.sex)
return sexes
def sex_code(self):