diff options
Diffstat (limited to 'archaeological_operations/models.py')
-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 |