feat: Use label in string representation
This commit is contained in:
parent
a965f26d48
commit
b51d04ffd1
@ -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):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user