summaryrefslogtreecommitdiff
path: root/archaeological_operations
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2023-03-06 19:22:41 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2023-03-06 19:24:15 +0100
commitb8517e71ef80647740ddecd93fc5baeb9c775257 (patch)
tree049a1cc0687437fddc3011874fbe023c7e467e40 /archaeological_operations
parentc1b0fc6772ac8b8d8c9923b93c595a1d5f9558fc (diff)
downloadIshtar-b8517e71ef80647740ddecd93fc5baeb9c775257.tar.bz2
Ishtar-b8517e71ef80647740ddecd93fc5baeb9c775257.zip
Administrative act: add a warning when associated item is deleted (refs #4554)
Diffstat (limited to 'archaeological_operations')
-rw-r--r--archaeological_operations/wizards.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/archaeological_operations/wizards.py b/archaeological_operations/wizards.py
index 918226e96..402219e41 100644
--- a/archaeological_operations/wizards.py
+++ b/archaeological_operations/wizards.py
@@ -217,6 +217,7 @@ class OperationClosingWizard(ClosingWizard):
"comment",
"towns",
"remains",
+ "administrative_act",
]
@@ -225,6 +226,10 @@ class OperationDeletionWizard(MultipleDeletionWizard):
fields = OperationClosingWizard.fields
filter_owns = {"selec-operation_deletion": ["pks"]}
redirect_url = "operation_deletion"
+ wizard_templates = {
+ "final-operation_deletion":
+ "ishtar/wizard/wizard_delete_associated_to_admin_act.html"
+ }
class OperationAdministrativeActWizard(OperationWizard):