Make sure that we return a string
This commit is contained in:
parent
ce3f748f33
commit
83c1fbd93e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue