diff options
Diffstat (limited to 'archaeological_context_records/models.py')
-rw-r--r-- | archaeological_context_records/models.py | 2 |
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: |