Skip to content

Commit

Permalink
Merge pull request bread-and-pepper#320 from indexofire/master
Browse files Browse the repository at this point in the history
Add select_related() to list view.
  • Loading branch information
wunki committed Aug 19, 2013
2 parents 93657f8 + b13e9ad commit 2595e9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion userena/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def get_context_data(self, **kwargs):

def get_queryset(self):
profile_model = get_profile_model()
queryset = profile_model.objects.get_visible_profiles(self.request.user)
queryset = profile_model.objects.get_visible_profiles(self.request.user).select_related()
return queryset

@secure_required
Expand Down

0 comments on commit 2595e9f

Please sign in to comment.