From 737587eda4391494b1c44caa5e21ad7c2ff9ef50 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 26 Jun 2025 20:45:11 +0200 Subject: ⚡️ imports: performance optimisations MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- archaeological_context_records/models.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'archaeological_context_records/models.py') 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(): -- cgit v1.2.3