str(id)
This commit is contained in:
parent
e719fee06e
commit
a2844bc2ce
|
@ -18,7 +18,7 @@ class Location(models.Model):
|
|||
objects = models.GeoManager()
|
||||
|
||||
def __unicode__(self):
|
||||
return self.id + ": " + self.name
|
||||
return str(self.id) + ": " + self.name
|
||||
|
||||
def geojson_as_dict(self):
|
||||
return {
|
||||
|
@ -109,7 +109,7 @@ class Event(models.Model):
|
|||
end_time = models.DateField()
|
||||
|
||||
def __unicode__(self):
|
||||
return self.id + ": " + self.name
|
||||
return str(self.id) + ": " + self.name
|
||||
|
||||
def get_dict(self):
|
||||
return {
|
||||
|
|
Loading…
Reference in New Issue
Block a user