diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-07-15 12:09:40 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-07-15 12:09:40 +0200 |
commit | 4c037b32b1a5ed122a6d468217903f0b6454181e (patch) | |
tree | f220b0d50db435435997c111d670bd45be5f6901 /archaeological_operations | |
parent | d9065d82f746494ce8113b9f58c72a36b3401a9a (diff) | |
download | Ishtar-4c037b32b1a5ed122a6d468217903f0b6454181e.tar.bz2 Ishtar-4c037b32b1a5ed122a6d468217903f0b6454181e.zip |
Url for public find api
Diffstat (limited to 'archaeological_operations')
-rw-r--r-- | archaeological_operations/models.py | 6 |
1 files changed, 3 insertions, 3 deletions
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 |