summaryrefslogtreecommitdiff
path: root/ishtar_common/utils.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2019-03-19 10:59:27 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2019-06-17 13:21:27 +0200
commitc2284c2c8f8c7b82ff19bbeaa19c90b0503d7482 (patch)
treef2852e88d47eb9efa031ff250d082fab002d8914 /ishtar_common/utils.py
parentb5bce39917ae19ac183dcbf48bf991f57caa3697 (diff)
downloadIshtar-c2284c2c8f8c7b82ff19bbeaa19c90b0503d7482.tar.bz2
Ishtar-c2284c2c8f8c7b82ff19bbeaa19c90b0503d7482.zip
Search vector and cached label update: update in cache
Diffstat (limited to 'ishtar_common/utils.py')
-rw-r--r--ishtar_common/utils.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/ishtar_common/utils.py b/ishtar_common/utils.py
index 9bd81383f..afb573da3 100644
--- a/ishtar_common/utils.py
+++ b/ishtar_common/utils.py
@@ -417,6 +417,7 @@ def _cached_label_changed(sender, **kwargs):
lbl = getattr(instance, '_generate_' + cached_label)()
if lbl != getattr(instance, cached_label):
changed.append((cached_label, lbl))
+ setattr(instance, cached_label, lbl) # update for cache
if changed:
instance._search_updated = False
if hasattr(instance, '_cascade_change') and instance._cascade_change: