QuerySet.prefetch_related lets you fetch related objects in a batch for the whole query set. In other words it does joins in the application. A really nice stuff. Take a look at docs for more info:
https://docs.djangoproject.com/en/dev/ref/models/querysets/#...