From: Radek Czajka Date: Thu, 3 Aug 2023 15:40:11 +0000 (+0200) Subject: fix X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/972f33fb2d98a9ff59c931ac6a8a82def7cea6fe?hp=d9cece3698e91c621a933cf9bd93b8b4bd207dfe fix --- diff --git a/src/catalogue/signals.py b/src/catalogue/signals.py index 209ab41ac..9b8fb55b2 100644 --- 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()