From ab72e9420b213c21e5f46a9fee06cf1795731317 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 23 Mar 2020 16:33:06 +0100 Subject: Public representation: do not display default year - display precise dating for datings --- archaeological_operations/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'archaeological_operations/models.py') diff --git a/archaeological_operations/models.py b/archaeological_operations/models.py index 8a415c0c5..12a6aecf5 100644 --- a/archaeological_operations/models.py +++ b/archaeological_operations/models.py @@ -1213,7 +1213,7 @@ class Operation(ClosedItem, DocumentItem, BaseHistorizedItem, QRCodeItem, def public_representation(self): dct = super(Operation, self).public_representation() dct.update({ - "year": self.year, + "year": self.year if settings.ISHTAR_DEFAULT_YEAR else None, "common-name": self.common_name, "operation-type": self.operation_type and str(self.operation_type), "remains": [str(r) for r in self.remains.all()], -- cgit v1.2.3