This commit is contained in:
sanj 2010-10-31 16:32:14 +02:00
parent e719fee06e
commit a2844bc2ce

View File

@ -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 {