fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Cutting stuff out.
[wolnelektury.git]
/
src
/
catalogue
/
signals.py
diff --git
a/src/catalogue/signals.py
b/src/catalogue/signals.py
index
209ab41
..
9b8fb55
100644
(file)
--- a/
src/catalogue/signals.py
+++ b/
src/catalogue/signals.py
@@
-75,4
+75,5
@@
def receive_tags_updated(sender, instance, affected_tags, **kwargs):
return
caches[settings.CACHE_MIDDLEWARE_ALIAS].clear()
- instance.clear_cache()
+ if sender in (Book, Picture):
+ instance.clear_cache()