Making a single query by converting queryset to a list.

@jamalex