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_finds/models_finds.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'archaeological_finds') diff --git a/archaeological_finds/models_finds.py b/archaeological_finds/models_finds.py index 67c4a414a..bd0c42619 100644 --- a/archaeological_finds/models_finds.py +++ b/archaeological_finds/models_finds.py @@ -3285,6 +3285,7 @@ class Find( _("No container have been set - the localisation cannot " "be set.") ) + container.no_post_process(history=True) localisation, error = container.set_localisation( place, value, static=static, return_errors=True ) @@ -3651,7 +3652,7 @@ class Find( if base_find.update_external_id(): modified = True if modified: - base_find.skip_history_when_saving = True + base_find.no_post_process() base_find._cached_label_checked = False base_find.save() # if not base_find.material_index: -- cgit v1.2.3