On 8/29/06, Mir Nazim <[EMAIL PROTECTED]> wrote: > > I have already gone through that. but problem is that I need to add > some attributes to relationships like > > he is my best friend > i have not met him > > something like orkut.
If you're going to attach view and template behavior based on the different relationship types as you add them, then I think it makes sense to just have a separate attribute field on the Person model for each relationship type. class Person(models.Model): ... contacts = models.ManyToManyField('self') friends = models.ManyToManyField('self') enemies = models.ManyToManyField('self') --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---