2008/12/11 Malcolm Tredinnick <[EMAIL PROTECTED]>: > > > On Wed, 2008-12-10 at 06:22 -0800, nucles wrote: >> Hello, >> >> If we create 2 models with many-to-many relationship django creates >> the intermediary table automatically for us. >> How can i use this intermediate table to relate other entities? > > What do you mean? Normally you don't need to worry about the > intermediate table at all; it's an implementation detail at the database > level. > > So what is the problem you're trying to solve here?
I agree this question should be asked, but there are valid use cases. I recently had a Book model and Contributor model which I joined with a Contribution table, which in turn had a ForeignKey into a ContributitionType model. This lets me add more types of contributions to a book in the future, such as author, editor, translator, illustrator et.c. Regards, Elvis > > Regards, > Malcolm > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---

