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
/
book.py
diff --git
a/src/catalogue/models/book.py
b/src/catalogue/models/book.py
index
1524c34
..
9381afc
100644
(file)
--- 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:
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'))
def author_str(self):
return ", ".join(str(t) for t in self.tags.filter(category='author'))