diff options
Diffstat (limited to 'ishtar_common/utils.py')
-rw-r--r-- | ishtar_common/utils.py | 7 |
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 |