Make sure that we return a string

This commit is contained in:
Andreas Zweili 2023-07-10 19:10:19 +02:00
parent ce3f748f33
commit 83c1fbd93e
1 changed files with 1 additions and 1 deletions

View File

@ -43,4 +43,4 @@ class DummyLocation(models.Model):
location = models.ForeignKey(Location, on_delete=models.CASCADE)
def __str__(self):
return self.location
return self.location.name