Re: Polymorphic model: many-to-many is not properly resolved

2008-07-01 Thread Richard Dahl
Yes, of course you did, I just didn't read your post quite right, disregard. -richard :) On 7/1/08, Torsten Bronger <[EMAIL PROTECTED]> wrote: > > > Hallöchen! > > Richard Dahl writes: > > > In your example SpecialProcess inherits from Process and Sample > > has a M2M to Process, where should

Re: Polymorphic model: many-to-many is not properly resolved

2008-07-01 Thread Torsten Bronger
Hallöchen! Richard Dahl writes: > In your example SpecialProcess inherits from Process and Sample > has a M2M to Process, where should the SpecialProcess come in? I created instances of SpecialProcess and added them to a Sample. I have many child classes of Process, and in the field

Re: Polymorphic model: many-to-many is not properly resolved

2008-07-01 Thread Matthias Kestenholz
On Tue, 2008-07-01 at 19:41 +0200, Torsten Bronger wrote: > Hallöchen! > > I use the current SVN version of Django. > > Consider the following models: > > class Process(models.Model): > ... > > class SpecialProcess(Process): > ... > > class Sample(models.Model): >

Re: Polymorphic model: many-to-many is not properly resolved

2008-07-01 Thread Richard Dahl
In your example SpecialProcess inherits from Process and Sample has a M2M to Process, where should the SpecialProcess come in? Is this what you mean: class Sample(models.Model): processes = models.ManyToManyField(SpecialProcess) If you do this, you should get SpecialProcess from print

Polymorphic model: many-to-many is not properly resolved

2008-07-01 Thread Torsten Bronger
Hallöchen! I use the current SVN version of Django. Consider the following models: class Process(models.Model): ... class SpecialProcess(Process): ... class Sample(models.Model): processes = models.ManyToManyField(Process) ... Then I populate one