From 53bea3ddd326510f7658286b394fbdd2b0f4b39a Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 19 Mar 2025 17:55:43 +0100 Subject: ⚡️ improve post-treatment (specialy for operations) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- archaeological_operations/wizards.py | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'archaeological_operations/wizards.py') 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 -- cgit v1.2.3