refactors get_index_queryset