summaryrefslogtreecommitdiff
path: root/archaeological_operations/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'archaeological_operations/models.py')
-rw-r--r--archaeological_operations/models.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/archaeological_operations/models.py b/archaeological_operations/models.py
index 843d0d1e9..b5e6a7754 100644
--- a/archaeological_operations/models.py
+++ b/archaeological_operations/models.py
@@ -929,8 +929,9 @@ class Operation(ClosedItem, BaseHistorizedItem, OwnPerms, ValueGetter,
return cls._return_get_owns(owns, values, get_short_menu_class)
def __unicode__(self):
- if self.cached_label:
+ if self.cached_label or getattr(self, "_label_checked", False):
return self.cached_label
+ self._label_checked = True
self.save()
return self.cached_label