From 66f6d4951bc7cd801757feca3b4a403ebedb2d64 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 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(): -- cgit v1.2.3