Sunday, September 1, 2013

Re: Why does the save form order make any difrance?

so like this?
Can u tell me why this have to be this way?

form = ProfielenForm(request.POST, instance=request.user.profile)
if form.is_valid():
    form.save()

form2 = ProfielenForm2(request.POST, instance=request.user.profile)
if form2.is_valid():
    form2.save()

form3 = ProfielenForm3(request.POST, instance=request.user.profile)
if form3.is_valid():
    form3.save()

form4 = ProfielenForm4(request.POST, instance=request.user.profile)
if form4.is_valid():
    form4.save()

form5 = ProfielenForm5(request.POST, instance=request.user.profile)
if form5.is_valid():
    form5.save()

form6 = ProfielenForm6(request.POST, instance=request.user.profile)
if form6.is_valid():
    form6.save()

form7 = ProfielenForm7(request.POST, instance=request.user.profile)
if form7.is_valid():
    form7.save()

form8 = ProfielenForm8(request.POST, instance=request.user.profile)
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 django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment