From 4c037b32b1a5ed122a6d468217903f0b6454181e Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 15 Jul 2019 12:09:40 +0200 Subject: Url for public find api --- archaeological_operations/models.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'archaeological_operations') diff --git a/archaeological_operations/models.py b/archaeological_operations/models.py index 336a9ca74..f971981c0 100644 --- a/archaeological_operations/models.py +++ b/archaeological_operations/models.py @@ -347,14 +347,14 @@ class ArchaeologicalSite(DocumentItem, BaseHistorizedItem, QRCodeItem, dct.update({ "reference": self.reference, "name": self.name, - "materials": [str(p) for p in self.periods.all()], + "periods": [str(p) for p in self.periods.all()], "remains": [str(r) for r in self.remains.all()], - "towns": [t.label_with_areas() for t in self.towns.all()], + "towns": [t.label_with_areas for t in self.towns.all()], "comment": self.comment, "locality": self.locality_ngi or self.locality_cadastral, }) profile = get_current_profile() - if profile.underwater(): + if profile.underwater: dct["shipwreck-name"] = self.shipwreck_name dct["sinking-date"] = self.sinking_date dct["discovery-area"] = self.discovery_area -- cgit v1.2.3