On Dec 29, 2007 9:46 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > thanks for the response russ, > > i did review the example -- is there anything particular (consequence) > that you're referring to ?
Just the obvious one - the fact that you can easily define an asymmetrical m2m relationship, and then query across that relationship, so there isn't any need to define your own m2m model. Unless you have other requirements that you didn't define, this approach will do exactly what you want (i.e., I am your friend, but you are not necessarily mine). The only reason to define your own m2m model with 'friend_from' and 'friend_to' is if you want to associate extra data with the relationship - say, you want to track the date that the relationship was made, or qualify the relationship as 'family/roommate/etc' - in this case, you will need to define your own intermediate model (see the 'm2m_intermediate' example models). You should also check out ticket #6095; this (or something very much like it) will eventually provide the 'official' way of handling m2m intermediate models, hopefully in the very near future. Russ %-) --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---