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
commit281cdc65111a42ab5f61055e1e1b637a20502814 (patch)
treef2852e88d47eb9efa031ff250d082fab002d8914 /ishtar_common/utils.py
parentd689fa4bd8d600874a45898482e8b1e931077d25 (diff)
downloadIshtar-281cdc65111a42ab5f61055e1e1b637a20502814.tar.bz2
Ishtar-281cdc65111a42ab5f61055e1e1b637a20502814.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: