summaryrefslogtreecommitdiff
path: root/ishtar_common/models.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2019-03-25 19:10:36 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2019-06-17 13:21:27 +0200
commitc8831c9334f86b163b91bbb98c27d0cd3dc41882 (patch)
treeea15696b3e5e0d34d158131fb22c72fdf8ea3df5 /ishtar_common/models.py
parent951c06308d822f420083d00734b84206fa3bc1d7 (diff)
downloadIshtar-c8831c9334f86b163b91bbb98c27d0cd3dc41882.tar.bz2
Ishtar-c8831c9334f86b163b91bbb98c27d0cd3dc41882.zip
Fix new author creation when no cached label is calculated
Diffstat (limited to 'ishtar_common/models.py')
-rw-r--r--ishtar_common/models.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/ishtar_common/models.py b/ishtar_common/models.py
index 083da4cff..c246380d5 100644
--- a/ishtar_common/models.py
+++ b/ishtar_common/models.py
@@ -4367,10 +4367,7 @@ class Author(FullSearch):
)
def __str__(self):
- if self.cached_label:
- return self.cached_label
- self.save()
- return self.cached_label
+ return self.cached_label or ""
def natural_key(self):
return self.person.natural_key() + (self.author_type.txt_idx,)