diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-02-04 11:29:45 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-04-24 19:38:56 +0200 |
commit | 27e715213b84eea8b92667b0d01c1a35a40858f9 (patch) | |
tree | 075b06bb8b0153ea87aadb1707cf4b72408b466d /archaeological_finds | |
parent | aec0e1a20f4f57c6977f45932a178c2011d3d70c (diff) | |
download | Ishtar-27e715213b84eea8b92667b0d01c1a35a40858f9.tar.bz2 Ishtar-27e715213b84eea8b92667b0d01c1a35a40858f9.zip |
Map JS: fix projections for display
Diffstat (limited to 'archaeological_finds')
-rw-r--r-- | archaeological_finds/models_finds.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/archaeological_finds/models_finds.py b/archaeological_finds/models_finds.py index fce9548ba..da872ab53 100644 --- a/archaeological_finds/models_finds.py +++ b/archaeological_finds/models_finds.py @@ -355,9 +355,7 @@ class BaseFind(BulkUpdatedItem, BaseHistorizedItem, OwnPerms): return def get_town_centroid(self): - if self.context_record.town: - return self.context_record.town.get_town_centroid() - return self.context_record.operation.get_town_centroid() + return self.context_record.get_town_centroid() def generate_index(self): """ |