Skip to content
Snippets Groups Projects
Commit b393c6f9 authored by Rachel TORCHET's avatar Rachel TORCHET
Browse files
Former-commit-id: 5b16245c9cac2b54e57c983edfc48ed67368f9c4
parents 19b10e64 24f2716d
No related branches found
No related tags found
No related merge requests found
import ippidb
from django.shortcuts import render
from django.http import HttpResponseRedirect
from formtools.wizard.views import SessionWizardView,NamedUrlSessionWizardView
......@@ -38,6 +39,9 @@ TEMPLATES = {"IdForm": "IdForm.html",
"ProteinDomainComplexForm": "ProteinDomainComplexForm.html",
"PpiForm": "PpiForm.html"}
class Ol(list):
ordered = True
class IppiWizard(NamedUrlSessionWizardView):
def get_template_names(self):
return [TEMPLATES[self.steps.current]]
......@@ -62,8 +66,7 @@ class IppiWizard(NamedUrlSessionWizardView):
p.uniprot_id = uniprot_ids[0]
p.autofill()
proteins.append(p)
#TODO replace p with proteins as the instance_dict
self.instance_dict['ProteinForm'] = p
self.instance_dict['ProteinForm'] = Ol(proteins)
return self.get_form_step_data(form)
def done(self, form_list, **kwargs):
......
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