'Django FormWizard done function saves each step (form) as a separate instance in DB

I've searched all over for a solution to this but just can't figure it out. I feel the solution is quite simple but...

I have a formwizard -

class FormWizardView(SessionWizardView):
template_name = "requests/data_change_requests.html"
form_list = [dc_step1, dc_step2]

def done(self, form_list,**kwargs):
    for form in form_list:
        form.save()
    return HttpResponseRedirect ('success.html')

when the Done function is run, each step in the form is saved as a separate instance in the DB.

how can I tie both form instances together and then save that so it is all in the instance?

Thanks



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source