fixed when no collections
[wolnelektury.git] / src / catalogue / models / collection.py
index bae1cc4..d519328 100644 (file)
@@ -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):