summaryrefslogtreecommitdiff
path: root/archaeological_finds/models_treatments.py
diff options
context:
space:
mode:
Diffstat (limited to 'archaeological_finds/models_treatments.py')
-rw-r--r--archaeological_finds/models_treatments.py8
1 files changed, 2 insertions, 6 deletions
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):