summaryrefslogtreecommitdiff
path: root/ishtar_common/utils.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2019-03-20 11:16:50 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2019-03-20 11:16:50 +0100
commit0ea89f12deae7c59b0f5901662c6a519a8f1e017 (patch)
tree348545788363e80b70d18856d28182242b82e9aa /ishtar_common/utils.py
parentac80884a42b5fd6032dff409346387616287abd5 (diff)
downloadIshtar-0ea89f12deae7c59b0f5901662c6a519a8f1e017.tar.bz2
Ishtar-0ea89f12deae7c59b0f5901662c6a519a8f1e017.zip
Cache dynamic choices
Diffstat (limited to 'ishtar_common/utils.py')
-rw-r--r--ishtar_common/utils.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/ishtar_common/utils.py b/ishtar_common/utils.py
index 1d44026e0..55e3a3a75 100644
--- a/ishtar_common/utils.py
+++ b/ishtar_common/utils.py
@@ -309,6 +309,9 @@ def cached_label_changed(sender, **kwargs):
if not force_update and hasattr(instance, '_cached_label_checked') \
and instance._cached_label_checked:
return
+ if hasattr(instance, "refresh_cache"):
+ instance.refresh_cache()
+
instance._cached_label_checked = True
cached_labels = ['cached_label']
if hasattr(sender, 'CACHED_LABELS'):