X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/87e084d47c335cd6f0b3e91d614999f55d148044..274de65ca44c680c6c555c599ec32428c79db356:/src/catalogue/models/book.py diff --git a/src/catalogue/models/book.py b/src/catalogue/models/book.py index 1524c3456..9381afc94 100644 --- a/src/catalogue/models/book.py +++ b/src/catalogue/models/book.py @@ -100,7 +100,7 @@ class Book(models.Model): try: return re.search(r'\w', self.title, re.U).group(0) except AttributeError: - return None + return '' def author_str(self): return ", ".join(str(t) for t in self.tags.filter(category='author'))