summaryrefslogtreecommitdiff
path: root/archaeological_operations/models.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2020-03-23 16:33:06 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2020-03-23 16:33:06 +0100
commit2157ef50ee6865f57c6bd5324e4072cfcf3fe1dc (patch)
tree9678400b7b21a22b17ccc4bc5e7b8e46fe51e471 /archaeological_operations/models.py
parentaffe6fe93f85d8400663bed15a15ae1bce3d3e11 (diff)
downloadIshtar-2157ef50ee6865f57c6bd5324e4072cfcf3fe1dc.tar.bz2
Ishtar-2157ef50ee6865f57c6bd5324e4072cfcf3fe1dc.zip
Public representation: do not display default year - display precise dating for datings
Diffstat (limited to 'archaeological_operations/models.py')
-rw-r--r--archaeological_operations/models.py2
1 files changed, 1 insertions, 1 deletions
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()],