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

correct get_context_data in wizard

Former-commit-id: f3e0f0bcd8a6f1a73c9b5cdcd8d6f15aa1ac7ddf
parent 704ef2b9
No related branches found
No related tags found
No related merge requests found
......@@ -74,8 +74,9 @@ class IppiWizard(NamedUrlSessionWizardView):
def get_context_data(self, **kwargs):
context=super(IppiWizard, self).get_context_data(**kwargs)
context['complex_type']=self.storage.get_step_data('ProteinDomainComplexTypeForm').get('complex_type')
context['complex_choice']=self.storage.get_step_data('ProteinDomainComplexTypeForm').get('complex_choice')
if self.steps.current == 'ProteinDomainComplexForm':
context['complex_type']=self.storage.get_step_data('ProteinDomainComplexTypeForm').get('complex_type')
context['complex_choice']=self.storage.get_step_data('ProteinDomainComplexTypeForm').get('complex_choice')
return context
def get_template_names(self):
......
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