diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-01-21 20:28:02 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-01-21 20:28:02 +0100 |
commit | f4bad8942ed753b85fcf7bdb00ce666bebe53c97 (patch) | |
tree | 5e230e6e9a775029ee560a92a4678064ae1a3ec4 /ishtar_common/utils.py | |
parent | af1ea36dabb2cd1e165e54020286ff723c109f37 (diff) | |
download | Ishtar-f4bad8942ed753b85fcf7bdb00ce666bebe53c97.tar.bz2 Ishtar-f4bad8942ed753b85fcf7bdb00ce666bebe53c97.zip |
Administrativ act: adapt forms, models and sheet
Diffstat (limited to 'ishtar_common/utils.py')
-rw-r--r-- | ishtar_common/utils.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ishtar_common/utils.py b/ishtar_common/utils.py index 4ecddfc92..23020ac95 100644 --- a/ishtar_common/utils.py +++ b/ishtar_common/utils.py @@ -129,11 +129,11 @@ def cached_label_changed(sender, **kwargs): if hasattr(instance, '_cascade_change') and instance._cascade_change: instance.skip_history_when_saving = True instance.save() - if hasattr(instance, 'update_search_vector'): - instance.update_search_vector() updated = False + if hasattr(instance, 'update_search_vector'): + updated = instance.update_search_vector() if hasattr(instance, '_cached_labels_bulk_update'): - updated = instance._cached_labels_bulk_update() + updated = instance._cached_labels_bulk_update() or updated if not updated and hasattr(instance, '_get_associated_cached_labels'): for item in instance._get_associated_cached_labels(): item._cascade_change = True |