Re: Intermediate Table question

2009-08-04 Thread Russell Keith-Magee
On Wed, Aug 5, 2009 at 12:58 AM, LeeRisq wrote: > > Does anyone know if an intermediate table can be specified on more > than two models? For instance: > > class A(m.Model): >       B = ManyToManyField(B, through='D') >       C = ManyToManyField(C, through='D') > > Will this

Re: Intermediate Table question

2009-08-04 Thread Alex Gaynor
On Tue, Aug 4, 2009 at 3:06 PM, LeeRisq wrote: > >> I don't believe it would work, but even if it did, what would this do? >>  What's the expecected behavior? > > > class A defines an consumer order > > class B and C both define different lines of product > > I'd like to store

Re: Intermediate Table question

2009-08-04 Thread LeeRisq
> I don't believe it would work, but even if it did, what would this do? >  What's the expecected behavior? class A defines an consumer order class B and C both define different lines of product I'd like to store all the ordering info in one intermediate table while maintaining different

Re: Intermediate Table question

2009-08-04 Thread Alex Gaynor
On Tue, Aug 4, 2009 at 11:58 AM, LeeRisq wrote: > > Does anyone know if an intermediate table can be specified on more > than two models? For instance: > > class A(m.Model): >       B = ManyToManyField(B, through='D') >       C = ManyToManyField(C, through='D') > > Will this

Intermediate Table question

2009-08-04 Thread LeeRisq
Does anyone know if an intermediate table can be specified on more than two models? For instance: class A(m.Model): B = ManyToManyField(B, through='D') C = ManyToManyField(C, through='D') Will this validate and actually work? --~--~-~--~~~---~--~~