Hi Russel,

I think that it doesn't solve the problem.

I can use your solution to get my friends. But I need to include
people who added me in the same listing.

To get a list of people who added me I can use:
people_who_added_me =
auth.models.User.objects.filter(profile__friends=my_id)

My problem is to get my friends and people who added me in the same
listing.
To do this I should be able to somehow use the Q object to build an OR
lookup.

As I said, the relationship isn't symmetrical, so I may not be present
in the friends list of someone in my own list.

Any idea?

Best regards,
Enrico


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to