summaryrefslogtreecommitdiff
path: root/archaeological_operations/wizards.py
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
commitbc66509e9e6871c94e843820df22d6e31c2a47e4 (patch)
tree933457806b295f14356edad5d9acdd4be18c80f3 /archaeological_operations/wizards.py
parent0bcbd37ff3a46f81681f9b96575d4eb296a68497 (diff)
downloadIshtar-bc66509e9e6871c94e843820df22d6e31c2a47e4.tar.bz2
Ishtar-bc66509e9e6871c94e843820df22d6e31c2a47e4.zip
Operation wizard: remove dead code
Diffstat (limited to 'archaeological_operations/wizards.py')
-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