fnp
/
wolnelektury.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
8b8bba0
)
set popularity when creating a book
author
Jan Szejko
<janek37@gmail.com>
Tue, 27 Feb 2018 10:06:42 +0000
(11:06 +0100)
committer
Jan Szejko
<janek37@gmail.com>
Tue, 27 Feb 2018 10:06:42 +0000
(11:06 +0100)
src/catalogue/models/book.py
patch
|
blob
|
history
diff --git
a/src/catalogue/models/book.py
b/src/catalogue/models/book.py
index
8b85ec7
..
e5ab5e4
100644
(file)
--- a/
src/catalogue/models/book.py
+++ b/
src/catalogue/models/book.py
@@
-465,6
+465,7
@@
class Book(models.Model):
child.parent_cover_changed()
book.save() # update sort_key_author
+ book.update_popularity()
cls.published.send(sender=cls, instance=book)
return book