Re: Multiple Model Form Generation

2014-05-16 Thread G Z
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

Re: Multiple Model Form Generation

2014-05-16 Thread G Z
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(form

Re: Multiple Model Form Generation

2014-05-15 Thread Brendan Edwards
> > 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: >

Re: Multiple Model Form Generation

2014-05-15 Thread Brendan Edwards
Why not just do this? (Not sure if this is the most efficient way..) models.py: > class SignUpForm(forms.ModelForm): > class Meta: > model = Customer > class VmForm(forms.ModelForm): class Meta: model = Vms class VmSpecForm(forms.ModelForm):

Re: Multiple Model Form Generation

2014-05-15 Thread G Z
> > so I changed it a bit after doing some more research however formb, and > formc don't display, if I change the 'formb' to 'form' it will overwrite > the first one and only display the second one. > This is how i read the forignekey associate between multiple forms to be. > from django.sho

Multiple Model Form Generation

2014-05-15 Thread G Z
I want to call three models into one form on my page but it doens't like the way that i am doing it. Any help would be awesome if i call them idividually it just displaces the last one i call. from django import forms from .models import Customer, Vms, Vmspecs class SignUpForm(forms.ModelForm