diff options
Diffstat (limited to 'ishtar_common/models.py')
| -rw-r--r-- | ishtar_common/models.py | 5 | 
1 files changed, 5 insertions, 0 deletions
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 ""  | 
