with something like this: my_query = PPDD.objects.select_related('dd__ee').filter(user=2)
can works,but i need do a distinct clause over the rows of "ee" , How can I do that? DD.objects.select_related('dd__ee').filter(user=2).distinct() don't works, because this query pick all the columns,if i can get only the columns of EE , the distinct clause can works, but I don't know how i can a do this. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.