From c8831c9334f86b163b91bbb98c27d0cd3dc41882 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 25 Mar 2019 19:10:36 +0100 Subject: Fix new author creation when no cached label is calculated --- ishtar_common/models.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'ishtar_common/models.py') 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,) -- cgit v1.2.3