diff options
| 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 | 
| commit | 9120704a819a6a598929a24886b400881724c7b5 (patch) | |
| tree | ea15696b3e5e0d34d158131fb22c72fdf8ea3df5 /ishtar_common/models.py | |
| parent | 1a54931383363bcb3e4fb568be6e959cc2cdc7b0 (diff) | |
| download | Ishtar-9120704a819a6a598929a24886b400881724c7b5.tar.bz2 Ishtar-9120704a819a6a598929a24886b400881724c7b5.zip  | |
Fix new author creation when no cached label is calculated
Diffstat (limited to 'ishtar_common/models.py')
| -rw-r--r-- | ishtar_common/models.py | 5 | 
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,)  | 
