summaryrefslogtreecommitdiff
path: root/archaeological_context_records/models.py
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-27 10:59:30 +0200
commit66f6d4951bc7cd801757feca3b4a403ebedb2d64 (patch)
tree09ffe42906a9a6492a102efd0240aaaf93bd8943 /archaeological_context_records/models.py
parent42b0ad69ed32fb72787e3bcdd0400ec7e2eb9156 (diff)
downloadIshtar-66f6d4951bc7cd801757feca3b4a403ebedb2d64.tar.bz2
Ishtar-66f6d4951bc7cd801757feca3b4a403ebedb2d64.zip
⚡️ imports: performance optimisations
Diffstat (limited to 'archaeological_context_records/models.py')
-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 23b6644ed..9be9789d9 100644
--- a/archaeological_context_records/models.py
+++ b/archaeological_context_records/models.py
@@ -1441,6 +1441,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():