From b564d3d2d32782ca439f9d721d01b0fe6cff25a3 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 22 Feb 2017 15:45:40 +0100 Subject: Fix cache operation update - Parcel associated with context records are not removed! --- ishtar_common/utils.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'ishtar_common/utils.py') diff --git a/ishtar_common/utils.py b/ishtar_common/utils.py index 83534d93a..e16d1abb6 100644 --- a/ishtar_common/utils.py +++ b/ishtar_common/utils.py @@ -55,6 +55,13 @@ def get_cache(cls, extra_args=[]): return cache_key, cache.get(cache_key) +def force_cached_label_changed(sender, **kwargs): + if not kwargs.get('instance'): + return + kwargs['instance']._cached_label_checked = False + cached_label_changed(sender, **kwargs) + + def cached_label_changed(sender, **kwargs): if not kwargs.get('instance'): return -- cgit v1.2.3