diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-02-14 17:01:18 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-04-24 19:38:56 +0200 |
commit | 19428f8e1b30e92497fb87833e8d333feaf2ef81 (patch) | |
tree | 3abd9f70021cf3195ebf3a0d72cc85be9bafbc69 /ishtar_common/models.py | |
parent | 16b54ce820e0f522164a12819ffc18197be59b33 (diff) | |
download | Ishtar-19428f8e1b30e92497fb87833e8d333feaf2ef81.tar.bz2 Ishtar-19428f8e1b30e92497fb87833e8d333feaf2ef81.zip |
Fix geo post save (bad overload of source)
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 "" |