fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Preliminary math and tables support.
[wolnelektury.git]
/
apps
/
catalogue
/
signals.py
diff --git
a/apps/catalogue/signals.py
b/apps/catalogue/signals.py
index
7260721
..
660d264
100644
(file)
--- a/
apps/catalogue/signals.py
+++ b/
apps/catalogue/signals.py
@@
-81,13
+81,13
@@
def tag_after_change(sender, instance, languages, **kwargs):
for lang in [lc for (lc, _ln) in settings.LANGUAGES]])
for model in Book, Picture:
for lang in [lc for (lc, _ln) in settings.LANGUAGES]])
for model in Book, Picture:
- for instance in model.tagged.with_all([instance]).only('pk'):
- instance.flush_includes()
+ for
model_
instance in model.tagged.with_all([instance]).only('pk'):
+
model_
instance.flush_includes()
if instance.category == 'author':
for model in Fragment, PictureArea:
if instance.category == 'author':
for model in Fragment, PictureArea:
- for instance in model.tagged.with_all([instance]).only('pk'):
- instance.flush_includes()
+ for
model_
instance in model.tagged.with_all([instance]).only('pk'):
+
model_
instance.flush_includes()
@receiver(tags_updated)
@receiver(tags_updated)