summaryrefslogtreecommitdiff
path: root/archaeological_operations/wizards.py
diff options
context:
space:
mode:
Diffstat (limited to 'archaeological_operations/wizards.py')
-rw-r--r--archaeological_operations/wizards.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/archaeological_operations/wizards.py b/archaeological_operations/wizards.py
index 44b3988eb..cafb7598b 100644
--- a/archaeological_operations/wizards.py
+++ b/archaeological_operations/wizards.py
@@ -138,7 +138,7 @@ class OperationWizard(Wizard):
Show a specific warning if no archaeological file is provided
"""
datas = super(OperationWizard, self).get_formated_datas(forms)
- # if the general town form is used the advertissement is relevant
+ # if the general town form is used the advertisement is relevant
has_no_af = [
form.prefix for form in forms if form.prefix == "townsgeneral-operation"
] and True
@@ -186,6 +186,8 @@ class OperationWizard(Wizard):
(("total_surface",), "surface"),
)
initial.update(self.__copy_fields(file, keys))
+ if "town" not in initial:
+ initial["town"] = [idx for idx, __ in self.get_towns()]
if file.is_preventive():
return initial
keys = (