Skip to content

Commit

Permalink
remove duplicated queries in account list view
Browse files Browse the repository at this point in the history
  • Loading branch information
indexofire committed Jun 7, 2013
1 parent e442c96 commit b13e9ad
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 b13e9ad

Please sign in to comment.