diff options
| 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 | 
| commit | ab72e9420b213c21e5f46a9fee06cf1795731317 (patch) | |
| tree | 9678400b7b21a22b17ccc4bc5e7b8e46fe51e471 /archaeological_context_records/models.py | |
| parent | 770b72cd25ad40403648ea7f42302b09b1497095 (diff) | |
| download | Ishtar-ab72e9420b213c21e5f46a9fee06cf1795731317.tar.bz2 Ishtar-ab72e9420b213c21e5f46a9fee06cf1795731317.zip  | |
Public representation: do not display default year - display precise dating for datings
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:  | 
