From a59c4cba89c09d60674ee6a70eadea1b4e14a08c Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 14 Feb 2019 17:01:18 +0100 Subject: Fix geo post save (bad overload of source) --- ishtar_common/models.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ishtar_common/models.py') diff --git a/ishtar_common/models.py b/ishtar_common/models.py index 8d3d5df9a..778461562 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -1620,6 +1620,11 @@ class GeoItem(object): return "" return dict(self.GEO_SOURCE)[self.point_source] + def geo_polygon_source(self): + if not self.multi_polygon_source: + return "" + return dict(self.GEO_SOURCE)[self.multi_polygon_source] + def _geojson_serialize(self, geom_attr): if not hasattr(self, geom_attr): return "" -- cgit v1.2.3