Skip to content
This repository has been archived by the owner on Jun 29, 2020. It is now read-only.

Commit

Permalink
N+1対策用のQuerySetが変数に入っていなかったので変数に入れるように修正
Browse files Browse the repository at this point in the history
  • Loading branch information
miio authored and giginet committed Oct 6, 2014
1 parent b0fdd9e commit 937505f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/kawaz/apps/profiles/views.py
Expand Up @@ -18,7 +18,7 @@ class ProfileListView(FilterView):

def get_queryset(self):
qs = Profile.objects.published(self.request.user)
qs.prefetch_related('accounts__service').prefetch_related('skills').select_related('user')
qs = qs.prefetch_related('accounts__service').prefetch_related('skills').select_related('user')
return qs


Expand Down

0 comments on commit 937505f

Please sign in to comment.