def get_queryset(self):
        queryset = self.get_queryset_from_request()

        # If bulk request, queryset only contains contributors in request
        if is_bulk_request(self.request):
            contrib_ids = [item['id'] for item in self.request.data]
            queryset[:] = [contrib for contrib in queryset if contrib._id in contrib_ids]
        return queryset

    # overrides ListCreateAPIView
dataset/ETHPy150Open CenterForOpenScience/osf.io/api/nodes/views.py/NodeContributorsList.get_queryset/original