fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
keep book popularity in model
[wolnelektury.git]
/
src
/
social
/
utils.py
diff --git
a/src/social/utils.py
b/src/social/utils.py
index
c89878a
..
63a4227
100755
(executable)
--- a/
src/social/utils.py
+++ b/
src/social/utils.py
@@
-69,6
+69,9
@@
def set_sets(user, work, sets):
# delete empty tags
Tag.objects.filter(category='set', user=user, items=None).delete()
+ if isinstance(work, Book):
+ work.update_popularity()
+
def cites_for_tags(tags):
"""Returns a QuerySet with all Cites for books with given tags."""