From b51d04ffd1d1a8d725fc12760959936de595f6ec Mon Sep 17 00:00:00 2001 From: moanos Date: Tue, 31 Dec 2024 12:14:04 +0100 Subject: [PATCH] feat: Use label in string representation --- src/fellchensammlung/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fellchensammlung/models.py b/src/fellchensammlung/models.py index 4ff3ab6..266681e 100644 --- a/src/fellchensammlung/models.py +++ b/src/fellchensammlung/models.py @@ -564,7 +564,7 @@ class SearchSubscription(models.Model): radius = models.IntegerField(choices=DistanceChoices.choices) 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):