fnp
/
wolnelektury.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7d8e158
)
fix sort_key_author assign on publish
author
Jan Szejko
<janek37@gmail.com>
Tue, 18 Oct 2016 09:45:22 +0000
(11:45 +0200)
committer
Jan Szejko
<janek37@gmail.com>
Tue, 18 Oct 2016 09:45:22 +0000
(11:45 +0200)
src/catalogue/models/book.py
patch
|
blob
|
history
diff --git
a/src/catalogue/models/book.py
b/src/catalogue/models/book.py
index
5ac999e
..
f9f6ac3
100644
(file)
--- a/
src/catalogue/models/book.py
+++ b/
src/catalogue/models/book.py
@@
-386,6
+386,7
@@
class Book(models.Model):
for child in notify_cover_changed:
child.parent_cover_changed()
+ book.save() # update sort_key_author
cls.published.send(sender=cls, instance=book)
return book