diff options
Diffstat (limited to 'archaeological_finds')
-rw-r--r-- | archaeological_finds/models_finds.py | 2 | ||||
-rw-r--r-- | archaeological_finds/models_treatments.py | 8 |
2 files changed, 3 insertions, 7 deletions
diff --git a/archaeological_finds/models_finds.py b/archaeological_finds/models_finds.py index 011e10df1..7bd33018f 100644 --- a/archaeological_finds/models_finds.py +++ b/archaeological_finds/models_finds.py @@ -2344,4 +2344,4 @@ class Property(LightHistorizedItem): verbose_name_plural = _(u"Properties") def __str__(self): - return self.person + settings.JOINT + self.find + return str(self.person) + settings.JOINT + str(self.find) diff --git a/archaeological_finds/models_treatments.py b/archaeological_finds/models_treatments.py index 572f002f2..996e03370 100644 --- a/archaeological_finds/models_treatments.py +++ b/archaeological_finds/models_treatments.py @@ -219,11 +219,7 @@ class Treatment(DashboardFormItem, ValueGetter, DocumentItem, ordering = ("-year", "-index", "-start_date") def __str__(self): - if self.cached_label: - return self.cached_label - self.skip_history_when_saving = True - self.save() - return self.cached_label + return self.cached_label or "" @property def short_class_name(self): @@ -994,7 +990,7 @@ class TreatmentFile(DashboardFormItem, ClosedItem, DocumentItem, ordering = ('cached_label',) def __str__(self): - return self.cached_label + return self.cached_label or "" @property def short_class_name(self): |