feat: Add string representation of SearchSubscriptions

This commit is contained in:
moanos [he/him] 2024-12-31 10:20:38 +01:00
parent 481635ac4e
commit 533142461a

View File

@ -563,6 +563,9 @@ class SearchSubscription(models.Model):
sex = models.CharField(max_length=20, choices=SexChoices.choices)
radius = models.IntegerField(choices=DistanceChoices.choices)
def __str__(self):
return f"{self.owner}: {self.sex} {self.radius}km - {self.location}"
class Rule(models.Model):
"""