Skip to content

Instantly share code, notes, and snippets.



Created Oct 24, 2013
What would you like to do?
class MyWizardView(SessionWizardView):
# this runs for the step it's on as well as for the steps before
def get_form_initial(self, step):
# steps are named 'step1', 'step2', 'step3'
# get the data for step 1
prev_data ='step1')
some_var = prev_data.get('step1-some_var','')
return self.initial_dict.get(step, {'some_var': some_var})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment