code: def filter_queryset(self, request, queryset, view):
          
          self.request = request
          self.view = view
  
          # enable addition of extra filters (i.e., a Q())
          # so custom filters can be added to the queryset without
          # running into https://code.djangoproject.com/ticket/18437
          # which, without this, would mean that filters added to the queryset
          # after this is called may not behave as expected
          extra_filters = self.view.get_extra_filters(request)
  
          disable_prefetches = self.view.is_update()
  
          self.DEBUG = settings.DEBUG
  
          return self._build_queryset(
              queryset=queryset,
              extra_filters=extra_filters,
              disable_prefetches=disable_prefetches,
          )
docs: Filter the queryset.
  
          This is the main entry-point to this class, and
          is called by DRF's list handler.