From 02e25cac88ad4c479ee25a7b5997dcfa5eae9b7f Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 26 Feb 2019 11:29:29 +0100 Subject: Context record: fix get town polygon from site --- archaeological_context_records/models.py | 2 +- ishtar_common/static/media/styles.css | 2 +- 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; -- cgit v1.2.3