Changed invalid queryset paramter to list slice