fix: don't exchange set for new one
This commit is contained in:
parent
8d2d80c30e
commit
14547ad621
@ -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):
|
||||||
|
Loading…
Reference in New Issue
Block a user