diff options
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 |
commit | 35b80da2036e2fcd24ffad3ce5844c2a5db266b2 (patch) | |
tree | 348545788363e80b70d18856d28182242b82e9aa /ishtar_common/utils.py | |
parent | 315500888834385e35bf06220c1cbf7812a858ce (diff) | |
download | Ishtar-35b80da2036e2fcd24ffad3ce5844c2a5db266b2.tar.bz2 Ishtar-35b80da2036e2fcd24ffad3ce5844c2a5db266b2.zip |
Cache dynamic choices
Diffstat (limited to 'ishtar_common/utils.py')
-rw-r--r-- | ishtar_common/utils.py | 3 |
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'): |