geometry.geojson

This commit is contained in:
Sanj 2011-08-29 05:55:25 +05:30
parent a6334a26d1
commit 85541ed4b1

View File

@ -58,7 +58,7 @@ class Feature(models.Model):
feature_type_name.short_description = "Feature Type" feature_type_name.short_description = "Feature Type"
def get_geojson(self): def get_geojson(self):
geom = json.loads(self.geojson) geom = json.loads(self.geometry.geojson)
properties = { properties = {
'id': self.id, 'id': self.id,
'preferred_name': self.preferred_name 'preferred_name': self.preferred_name