summaryrefslogtreecommitdiff
path: root/archaeological_operations
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2022-11-16 19:12:44 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2022-12-12 12:23:19 +0100
commit809957d9d6ca8526e2320010eddb4fe987ba37cf (patch)
tree933457806b295f14356edad5d9acdd4be18c80f3 /archaeological_operations
parentc0c0f67e4f6150de5c3cee7b13ef257a367486b9 (diff)
downloadIshtar-809957d9d6ca8526e2320010eddb4fe987ba37cf.tar.bz2
Ishtar-809957d9d6ca8526e2320010eddb4fe987ba37cf.zip
Operation wizard: remove dead code
Diffstat (limited to 'archaeological_operations')
-rw-r--r--archaeological_operations/wizards.py12
1 files changed, 1 insertions, 11 deletions
diff --git a/archaeological_operations/wizards.py b/archaeological_operations/wizards.py
index cafb7598b..918226e96 100644
--- a/archaeological_operations/wizards.py
+++ b/archaeological_operations/wizards.py
@@ -90,8 +90,6 @@ class OperationWizard(Wizard):
"""
context = super(OperationWizard, self).get_context_data(form, **kwargs)
step = self.steps.current
- if step.startswith("general"):
- context["TOWNS"] = self.get_towns()
# reminder of the current file
reminder = self.get_reminder()
if reminder:
@@ -119,17 +117,9 @@ class OperationWizard(Wizard):
if data:
data = data.copy()
else:
- data = {}
+ data = None
if not step:
step = self.steps.current
- try:
- form = self.get_form_list()[step]
- except KeyError:
- raise Http404()
- # manage the dynamic choice of towns
- if step.startswith("towns") and hasattr(form, "management_form"):
- data["TOWNS"] = self.get_towns()
- data = data or None
form = super(OperationWizard, self).get_form(step, data, files)
return form