On Thu, 2006-08-17 at 08:06 -0700, PythonistL wrote: > In my project I have a user class that represents user's information. > Now I would like to give users a possibility to set their favourite > users. > That means a user will set some his favourite users > What model shall I use? > Relating an object to itself, many-to-one or another model? Thank you
Relating to itself, not symmetrical. Changing just few names from my application, I get: favorite_users = models.ManyToManyField('self', null = True, blank = True, related_name = 'favorited_by', symmetrical = False, filter_interface = models.HORIZONTAL) -- Maciej Bliziński http://automatthias.wordpress.com --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---