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_operations/models.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'archaeological_operations') diff --git a/archaeological_operations/models.py b/archaeological_operations/models.py index 3717ba9b9..cf0db7d19 100644 --- a/archaeological_operations/models.py +++ b/archaeological_operations/models.py @@ -2583,6 +2583,8 @@ def operation_post_save(sender, **kwargs): operation.fnap_financing = fnap_percent operation.save() cached_label_changed(sender, **kwargs) + if getattr(operation, "_no_down_model_update", None): + return if operation.associated_file: operation.associated_file.update_short_menu_class() # manage parcel association -- cgit v1.2.3