summaryrefslogtreecommitdiff
path: root/archaeological_operations/wizards.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2025-03-19 17:55:43 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2025-03-19 17:55:43 +0100
commit53bea3ddd326510f7658286b394fbdd2b0f4b39a (patch)
treefe8b8d1ac43892fea0addf8b306b20703533b8cb /archaeological_operations/wizards.py
parentf3926450e8b990a8b773aa76c5d58c63fdc5758d (diff)
downloadIshtar-53bea3ddd326510f7658286b394fbdd2b0f4b39a.tar.bz2
Ishtar-53bea3ddd326510f7658286b394fbdd2b0f4b39a.zip
⚡️ improve post-treatment (specialy for operations)develop-4.4-optimization-test
Diffstat (limited to 'archaeological_operations/wizards.py')
-rw-r--r--archaeological_operations/wizards.py10
1 files changed, 0 insertions, 10 deletions
diff --git a/archaeological_operations/wizards.py b/archaeological_operations/wizards.py
index 74840e552..94d6b49f9 100644
--- a/archaeological_operations/wizards.py
+++ b/archaeological_operations/wizards.py
@@ -87,7 +87,6 @@ class OperationWizard(Wizard):
Return extra context for templates
"""
context = super(OperationWizard, self).get_context_data(form, **kwargs)
- step = self.steps.current
# reminder of the current file
reminder = self.get_reminder()
if reminder:
@@ -198,15 +197,6 @@ class OperationModificationWizard(OperationWizard):
modification = True
filter_owns = {"selec-operation_modification": ["pk"]}
- def get_form_kwargs(self, step, **kwargs):
- kwargs = super(OperationModificationWizard, self).get_form_kwargs(
- step, **kwargs
- )
- if step != "relations-operation_modification":
- return kwargs
- kwargs["left_record"] = self.get_current_object()
- return kwargs
-
class OperationClosingWizard(ClosingWizard):
model = models.Operation