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
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
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):
>
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
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
5 matches
Mail list logo