diff options
Diffstat (limited to 'archaeological_finds/wizards.py')
-rw-r--r-- | archaeological_finds/wizards.py | 7 |
1 files changed, 7 insertions, 0 deletions
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 |