hallo developers
i Created a multi step form but the issues is that i can't save the data to 
the database and that the purpose of creating the form, please how can i 
fix this or can anyone help me?
, below is my views  code 

class add_School(SessionWizardView):
    template_name =  'schoolprofile.html'
    file_storage = 
FileSystemStorage(location=os.path.join(settings.MEDIA_ROOT, 'images', 
'videos'))

    def done(self, form_list, form_dict, **kwargs):
        form_data = process_data(form_list)
        
        return render('index.html',  { 'form_data' :form_data})
        
        
def process_data(form_list):
    form_data = [form.cleaned_data for form in form_list]
    data = ['User', 'School', 'school_data']
    
    send_mail(form_data[0]['Schools'],
              form_data[1]['school_data'],
              ['tosinayoo...@gmail.com', ], fail_silently = False)

    

    return form_data

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/972c1571-6465-4f57-a25d-b07e0e95eb31%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to