On Wed, Aug 5, 2009 at 12:58 AM, LeeRisq<leer...@gmail.com> 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 validate and actually work?

As long as D has a foreign Key FK relations with both B and C, it
should validate. What you will end up with is a ternary relation
between A, B, and C. Whether this is what you want is between you and
your requirements :-)

Yours,
Russ Magee %-)

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to