feat: Use label in string representation

This commit is contained in:
moanos [he/him] 2024-12-31 12:14:04 +01:00
parent a965f26d48
commit b51d04ffd1

View File

@ -564,7 +564,7 @@ class SearchSubscription(models.Model):
radius = models.IntegerField(choices=DistanceChoices.choices) radius = models.IntegerField(choices=DistanceChoices.choices)
def __str__(self): def __str__(self):
return f"{self.owner}: {self.sex} {self.radius}km - {self.location}" return f"{self.owner}: [{SexChoicesWithAll(self.sex).label}] {self.radius}km - {self.location}"
class Rule(models.Model): class Rule(models.Model):