fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixes
[redakcja.git]
/
src
/
catalogue
/
models
/
chunk.py
diff --git
a/src/catalogue/models/chunk.py
b/src/catalogue/models/chunk.py
index
ade5cde
..
4182d08
100755
(executable)
--- a/
src/catalogue/models/chunk.py
+++ b/
src/catalogue/models/chunk.py
@@
-43,7
+43,7
@@
class Chunk(dvcs_models.Document):
# Representing
# ============
# Representing
# ============
- def __
unicode
__(self):
+ def __
str
__(self):
return "%d:%d: %s" % (self.book_id, self.number, self.title)
@models.permalink
return "%d:%d: %s" % (self.book_id, self.number, self.title)
@models.permalink
@@
-54,7
+54,7
@@
class Chunk(dvcs_models.Document):
title = self.book.title
if self.title:
title += ", %s" % self.title
title = self.book.title
if self.title:
title += ", %s" % self.title
- if book_length > 1:
+ if book_length
and book_length
> 1:
title += " (%d/%d)" % (self.number, book_length)
return title
title += " (%d/%d)" % (self.number, book_length)
return title