On 7/1/07, Davide.D <[EMAIL PROTECTED]> wrote: > > > > def topics_I_reply(request, user_name): > > > > topic_list = > > Topic.objects.filter(topiccomment__author__username__exact=user_name) > > Thanks a lot. It work! > > But there's still a problem, if a user replied a topic n times, the > queryset ( topic_list ) will contains n same topic.
You want qs.distinct(): http://www.djangoproject.com/documentation/db-api/#distinct :) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected] 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 -~----------~----~----~----~------~----~------~--~---

