Hello, how can i get fields from different tables related for a foreign key?
When I do a inner join like AA.objects.filter(bb__field = ...) ... I just can access to the AA fields, and not to fields in the other table in a normal query i can do something like "select AA.*, BB.* FROM. AA inner join BB..." but in django the resultant query is "select AA.* FROM. AA inner join BB..." Now i use select_related for solve this problem isn't recommended , because this query has an impact in the server performance. How i can solve this? Thanks for read, and sorry for my poor english. -- 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.