summaryrefslogtreecommitdiff
path: root/ishtar_common/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'ishtar_common/models.py')
-rw-r--r--ishtar_common/models.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/ishtar_common/models.py b/ishtar_common/models.py
index 8c421bac7..8d3d5df9a 100644
--- a/ishtar_common/models.py
+++ b/ishtar_common/models.py
@@ -1613,6 +1613,13 @@ class DocumentItem(object):
class GeoItem(object):
+ GEO_SOURCE = ('T', _(u"Town")), ('P', _(u"Precise"))
+
+ def geo_point_source(self):
+ if not self.point_source:
+ return ""
+ return dict(self.GEO_SOURCE)[self.point_source]
+
def _geojson_serialize(self, geom_attr):
if not hasattr(self, geom_attr):
return ""