summaryrefslogtreecommitdiff
path: root/archaeological_context_records
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2025-06-26 20:45:11 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2025-06-26 20:45:11 +0200
commit737587eda4391494b1c44caa5e21ad7c2ff9ef50 (patch)
tree5736c3f16c12f007e7961b88561d2364368b2276 /archaeological_context_records
parentaab08f0337002bb90a002e22153f9fd68e1dd61d (diff)
downloadIshtar-737587eda4391494b1c44caa5e21ad7c2ff9ef50.tar.bz2
Ishtar-737587eda4391494b1c44caa5e21ad7c2ff9ef50.zip
⚡️ imports: performance optimisations
Diffstat (limited to 'archaeological_context_records')
-rw-r--r--archaeological_context_records/models.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/archaeological_context_records/models.py b/archaeological_context_records/models.py
index 4c642a464..861558c09 100644
--- a/archaeological_context_records/models.py
+++ b/archaeological_context_records/models.py
@@ -1405,6 +1405,8 @@ def context_record_post_save(sender, **kwargs):
profile = get_current_profile()
if profile.parent_relations_engine == "T":
ContextRecordTree._update_self_relation(instance.pk) # on creation: manage self relation
+ if getattr(instance, "_no_down_model_update", None):
+ return
BaseFind = apps.get_model("archaeological_finds", "BaseFind")
Find = apps.get_model("archaeological_finds", "Find")
for bf in instance.base_finds.all():