I tried it it doesn't work because they keys don't associate when you click 
save.

On Friday, May 16, 2014 2:25:06 PM UTC-6, G Z wrote:
>
> Does that work if they all have forignekey associations with each other?
>
> On Thursday, May 15, 2014 4:12:34 PM UTC-6, Brendan Edwards wrote:
>>
>> Why not just do this? (Sorry for the crappy indentation.. tab doesn't 
>>> work on here for some reason)
>>>
>>> models.py:
>>>  
>>>
>>>> class SignUpForm(forms.ModelForm):
>>>>         class Meta:
>>>>                 model = Customer
>>>>
>>>  
>>> class VmForm(forms.ModelForm):
>>>         class Meta:
>>>                 model = Vms
>>>
>>> class VmSpecForm(forms.ModelForm):
>>>         class Meta:
>>>                 model = Vmspecs 
>>>
>>> views.py
>>>
>>> def index(request):
>>>
>>        if request.POST:
>>
>>>         form = SignUpForm1(request.POST or None)
>>>         formb = VmForm(request.POST or None)
>>>         formc = VmSpecForm(request.POST or None)
>>>
>>>         if form.is_valid() and formb.is_valid() and formc.is_valid()
>>>                 form.save()
>>>                 formb.save()
>>>                 formc.save()
>>> else
>>>
>>> load template and forms etc..
>>>
>>

-- 
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 http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/886d9f2f-d1f6-45f4-a1c7-870fcd1ebfa3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to