summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2019-02-26 11:29:29 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2019-04-24 19:38:57 +0200
commitcf65ed73524dd677c1192ded454715f3779616fd (patch)
tree455c85674bf0fe39404482a8cb988e139d2066f7
parent1297a79cd5e2e6726eb5bff3dd8ce952b9c953a7 (diff)
downloadIshtar-cf65ed73524dd677c1192ded454715f3779616fd.tar.bz2
Ishtar-cf65ed73524dd677c1192ded454715f3779616fd.zip
Context record: fix get town polygon from site
-rw-r--r--archaeological_context_records/models.py2
-rw-r--r--ishtar_common/static/media/styles.css2
2 files changed, 2 insertions, 2 deletions
diff --git a/archaeological_context_records/models.py b/archaeological_context_records/models.py
index a2793ac67..004e292d9 100644
--- a/archaeological_context_records/models.py
+++ b/archaeological_context_records/models.py
@@ -521,7 +521,7 @@ class ContextRecord(BulkUpdatedItem, BaseHistorizedItem, GeoItem,
if self.town:
return self.town.limit, self._meta.verbose_name
if self.archaeological_site:
- polys = self.archaeological_site.get_town_centroid()
+ polys = self.archaeological_site.get_town_polygons()
if polys:
return polys
return self.operation.get_town_polygons()
diff --git a/ishtar_common/static/media/styles.css b/ishtar_common/static/media/styles.css
index 507948915..422a9a906 100644
--- a/ishtar_common/static/media/styles.css
+++ b/ishtar_common/static/media/styles.css
@@ -210,7 +210,7 @@ table.dataTable thead th, table.dataTable thead td {
#message {
z-index: 42200;
- position: absolute;
+ position: fixed;
top: 5px;
right: 5px;
background: #fff;