summaryrefslogtreecommitdiff
path: root/ishtar_common/utils.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2017-02-22 15:45:40 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2017-02-22 15:45:40 +0100
commitb564d3d2d32782ca439f9d721d01b0fe6cff25a3 (patch)
treefd3cd5fd78447db9db5663c3c30c4d4d1379da54 /ishtar_common/utils.py
parent2b059ee6ed6e90c63ab8f04d3709800d4d365227 (diff)
downloadIshtar-b564d3d2d32782ca439f9d721d01b0fe6cff25a3.tar.bz2
Ishtar-b564d3d2d32782ca439f9d721d01b0fe6cff25a3.zip
Fix cache operation update - Parcel associated with context records are not removed!
Diffstat (limited to 'ishtar_common/utils.py')
-rw-r--r--ishtar_common/utils.py7
1 files changed, 7 insertions, 0 deletions
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