Hi,

Why does this save sometimes not save all forms
If i set form8 at the top it doesnt save form 8
When i set it at the bottom it does save form 8, but not any others

without the form8 all works


if request.POST:

        form = ProfielenForm(request.POST, instance=request.user.profile)
        form2 = ProfielenForm2(request.POST, instance=request.user.profile)
        form3 = ProfielenForm3(request.POST, instance=request.user.profile)
        form4 = ProfielenForm4(request.POST, instance=request.user.profile)
        form5 = ProfielenForm5(request.POST, instance=request.user.profile)
        form6 = ProfielenForm6(request.POST, instance=request.user.profile)
        form7 = ProfielenForm7(request.POST, instance=request.user.profile)
        form8 = ProfielenForm8(request.POST, instance=request.user.profile)



        if form7.is_valid():
            form7.save()

        if form6.is_valid():
            form6.save()

        if form5.is_valid():
            form5.save()

        if form4.is_valid():
            form4.save()

        if form3.is_valid():
            form3.save()

        if form2.is_valid():
            form2.save()

        if form.is_valid():
            form.save()

        if form8.is_valid():
            form8.save()

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to