diff options
Diffstat (limited to 'ishtar_common/wizards.py')
-rw-r--r-- | ishtar_common/wizards.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ishtar_common/wizards.py b/ishtar_common/wizards.py index 697c51156..e6cda14cf 100644 --- a/ishtar_common/wizards.py +++ b/ishtar_common/wizards.py @@ -1420,6 +1420,14 @@ class Wizard(IshtarWizard): self._current_object = current_obj return current_obj + def get_form_kwargs(self, step=None): + kwargs = super().get_form_kwargs(step) + if self.modification: + kwargs["modification"] = True + elif self.deletion: + kwargs["deletion"] = True + return kwargs + def get_form_initial(self, step, data=None): current_obj = self.get_current_object() current_step = self.steps.current |