fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
feed fix
[redakcja.git]
/
apps
/
catalogue
/
models
/
book.py
diff --git
a/apps/catalogue/models/book.py
b/apps/catalogue/models/book.py
index
7154775
..
89c6267
100755
(executable)
--- a/
apps/catalogue/models/book.py
+++ b/
apps/catalogue/models/book.py
@@
-271,7
+271,8
@@
class Book(models.Model):
def get_on_track(self):
if self.published:
return -1
- stages = [ch.stage.ordering for ch in self if ch.stage is not None]
+ stages = [ch.stage.ordering if ch.stage is not None else 0
+ for ch in self]
if not len(stages):
return 0
return min(stages)