def filter_queryset(self, request, queryset, view):
        """
        This method overrides the standard filter_queryset method.
        This method will check to see if the view calling this is from
        a list type action. This function will also route the filter
        by action type if action_routing is set to True.
        """
        # Check if this is a list type request
        if view.kwargs not in view.lookup_field:
            if not self.action_routing:
                return self.filter_list_queryset(request, queryset, view)
            else:
                method_name = "filter_{action}_queryset".format(action=view.action)
                return getattr(self, method_name)(request, queryset, view)
        return queryset
dataset/ETHPy150Open dbkaplan/dry-rest-permissions/dry_rest_permissions/generics.py/DRYPermissionFiltersBase.filter_queryset/swapped operands of `not in`