Skip to content
Snippets Groups Projects
Commit 925f8659 authored by Hervé  MENAGER's avatar Hervé MENAGER
Browse files

correct the bibliographyform problem

TODO: make it in a clean method

Former-commit-id: aea5c2662300200d87724281e556fc10ed35f3ed
parent da99934f
No related branches found
No related tags found
No related merge requests found
......@@ -99,6 +99,8 @@ class IppiWizard(NamedUrlSessionWizardView):
data = super(IppiWizard, self).process_step(form).copy()
if self.steps.current == 'IdForm':
form.instance.autofill()
# reset data for the next form
del self.storage.data['step_data']['BibliographyForm']
if self.steps.current in ['IdForm', 'Bibliography']:
form.instance.save()
data['pk'] = form.instance.id
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment