code: def query_options(self):
          
          if not hasattr(self.serializer, 'get_query_options'):
              return ()
  
          return self.serializer.get_query_options(Load(self.model))
docs: Options to apply to the query for the view.
  
          Set this to configure relationship and column loading.
  
          By default, this calls the ``get_query_options`` method on the
          serializer with a `Load` object bound to the model, if that serializer
          method exists.