Replace deprecated method queryset with get_queryset.