summaryrefslogtreecommitdiff
path: root/archaeological_context_records
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_context_records
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_context_records')
-rw-r--r--archaeological_context_records/models.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/archaeological_context_records/models.py b/archaeological_context_records/models.py
index 02b074706..4b25366f0 100644
--- a/archaeological_context_records/models.py
+++ b/archaeological_context_records/models.py
@@ -88,6 +88,8 @@ class Dating(models.Model):
verbose_name_plural = _("Datings")
def __str__(self):
+ if self.precise_dating and self.precise_dating.strip():
+ return self.precise_dating.strip()
start_date = self.start_date and str(self.start_date) or ""
end_date = self.end_date and str(self.end_date) or ""
if not start_date and not end_date: