From abdd99265410d6a163c8b0f74dcba0f6f0664f70 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Fri, 13 Apr 2018 13:23:35 +0200 Subject: New type of operation: court-ordered seizure with associated fields (refs #4048) * models * migrations * wizard panel * forms * sheet --- archaeological_finds/wizards.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'archaeological_finds/wizards.py') diff --git a/archaeological_finds/wizards.py b/archaeological_finds/wizards.py index b4471a80b..b244118cd 100644 --- a/archaeological_finds/wizards.py +++ b/archaeological_finds/wizards.py @@ -51,6 +51,13 @@ class FindWizard(Wizard): if base_finds: return base_finds[0].context_record + def get_form_kwargs(self, step=None): + kwargs = super(FindWizard, self).get_form_kwargs(step) + if step not in ('find-find_creation', 'find-find_modification'): + return kwargs + kwargs['context_record'] = self.get_current_contextrecord() + return kwargs + def get_context_data(self, form, **kwargs): """ Get the operation and context record "reminder" on top of wizard forms -- cgit v1.2.3