Re: Form with 2 models

2008-10-29 Thread Paddy Joy
Masklinn wrote: > On 29 Oct 2008, at 15:06 , Paddy Joy wrote: > > Is there an easy way of doing this or do I need to create a custom > > form that contains the fields of both models and then separate the > > data in my view? > > > > Paddy > > What's wrong with creating two different Forms (one for

Re: Form with 2 models

2008-10-29 Thread Steve Holden
Masklinn wrote: > On 29 Oct 2008, at 15:06 , Paddy Joy wrote: >> Is there an easy way of doing this or do I need to create a custom >> form that contains the fields of both models and then separate the >> data in my view? >> >> Paddy > > What's wrong with creating two different Forms (one for the

Re: Form with 2 models

2008-10-29 Thread Masklinn
On 29 Oct 2008, at 15:06 , Paddy Joy wrote: > Is there an easy way of doing this or do I need to create a custom > form that contains the fields of both models and then separate the > data in my view? > > Paddy What's wrong with creating two different Forms (one for the account, one for the use

Re: Form with 2 models

2008-10-29 Thread Rajesh Dhawan
Hi Paddy, > I have an Account model: > > class Account(models.Model): > > accountname = models.CharField(max_length=50, unique=True) > owner = models.ForeignKey(User) > admins = models.ManyToManyField(User, related_name='admins', > blank=True) > accounts = models.M