From 1cc2fe4062b16a91d04ed4ffa35248f82c92fbb4 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Fri, 13 Sep 2019 00:18:29 +0200 Subject: New management of "popup" for new items -> change all form configuration --- ishtar_common/wizards.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'ishtar_common/wizards.py') diff --git a/ishtar_common/wizards.py b/ishtar_common/wizards.py index f5f9d63dc..3cdcbc63d 100644 --- a/ishtar_common/wizards.py +++ b/ishtar_common/wizards.py @@ -97,6 +97,12 @@ class IshtarWizard(NamedUrlWizardView): kwargs['user'] = self.request.user return kwargs + def get_context_data(self, form, **kwargs): + context = super(IshtarWizard, self).get_context_data(form, **kwargs) + if hasattr(form, "extra_form_modals"): + context["extra_form_modals"] = form.extra_form_modals + return context + class Wizard(IshtarWizard): model = None -- cgit v1.2.3