0
1

class ContactWizard(SessionWizardView):
    template_name = "main_app/contact_form.html"
    file_storage = FileSystemStorage(location=os.path.join(settings.MEDIA_ROOT, 'imagenes'))

    def done(self, form_list, **kwargs):
        form_data = process_form_data(form_list)

        return HttpResponseRedirect('/')
        # return HttpResponseRedirect('/done.html')
        # return render('main_app/done.html', {'form_data':form_data})


def process_form_data(form_list):
    form_data = [form.cleaned_data for form in form_list]

    return form_data

|

+50

1

1

|
  • 1