fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed when no collections
[wolnelektury.git]
/
src
/
catalogue
/
models
/
collection.py
diff --git
a/src/catalogue/models/collection.py
b/src/catalogue/models/collection.py
index
bae1cc4
..
d519328
100644
(file)
--- 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:
try:
return re.search(r'\w', self.title, re.U).group(0)
except AttributeError:
- return
None
+ return
''
@models.permalink
def get_absolute_url(self):
@models.permalink
def get_absolute_url(self):