From 909a40560013f330c9b1b35669be44ce7a061860 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 19 Feb 2026 15:49:22 +0100 Subject: 🐛 operation/file document templates: fix towns values (refs #6625) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- archaeological_operations/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'archaeological_operations') diff --git a/archaeological_operations/models.py b/archaeological_operations/models.py index d65f1b7bc..a976e427f 100644 --- a/archaeological_operations/models.py +++ b/archaeological_operations/models.py @@ -1043,7 +1043,7 @@ def get_values_town_related(item, prefix, values, filtr=None): get_towns_code = not filtr or prefix + "towns_code" in filtr get_dpt = not filtr or prefix + "departments" in filtr get_dpt_nb = not filtr or prefix + "departments_number" in filtr - if not get_towns and not get_dpt and not get_dpt_nb or not get_towns_code: + if not get_towns and not get_dpt and not get_dpt_nb and not get_towns_code: return values if get_towns: values[prefix + "towns"] = "" -- cgit v1.2.3