your code is absolutely fantastic, thx very much! On 9月4日, 上午12时18分, "Jonathan Buchanan" <[EMAIL PROTECTED]> wrote: > On 9/3/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > > > there are many users and submit many posts, user1, user2,user3 etc. > > are my friends, now i want to select all posts which submitted by my > > friends? > > can somebody gelp me, thx! > > Try this: > > Post.objects.filter(user__in=[user1, user2, user3]) > > Jonathan.
--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---