X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/87e084d47c335cd6f0b3e91d614999f55d148044..2fea31c78fb2dbbbabda91c64aab0760adba517c:/src/catalogue/models/collection.py diff --git a/src/catalogue/models/collection.py b/src/catalogue/models/collection.py index bae1cc418..d51932841 100644 --- a/src/catalogue/models/collection.py +++ b/src/catalogue/models/collection.py @@ -33,7 +33,7 @@ class Collection(models.Model): try: return re.search(r'\w', self.title, re.U).group(0) except AttributeError: - return None + return '' @models.permalink def get_absolute_url(self):