From 972f33fb2d98a9ff59c931ac6a8a82def7cea6fe Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Thu, 3 Aug 2023 17:40:11 +0200 Subject: [PATCH 1/1] fix --- src/catalogue/signals.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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() -- 2.20.1