      try:
          args, _, _, defaults = inspect.getargspec(obj)
      except TypeError:
          return False
      else:
          len_args = len(args) if inspect.isfunction(obj) else len(args) - 1
          len_defaults = len(defaults) if defaults else 0
          return len_args <= len_defaults
  
  
  def get_component(obj, attr_name):
      """
      Given an object, and an attribute name,
 
</s> remove     try:
        args, _, _, defaults = inspect.getargspec(obj)
    except TypeError:
 </s> add     function = inspect.isfunction(obj)
    method = inspect.ismethod(obj)

    if not (function or method): </s> remove         response = self.view(request).render()
 </s> add         # Note: Database queries are a `SELECT COUNT`, and `SELECT <fields>`
        with self.assertNumQueries(2):
            response = self.view(request).render() </s> remove         response = self.view(request).render()
 </s> add         with self.assertNumQueries(2):
            response = self.view(request).render() </s> remove         response = self.view(request).render()
 </s> add         with self.assertNumQueries(2):
            response = self.view(request).render()
    args, _, _, defaults = inspect.getargspec(obj)
    len_args = len(args) if function else len(args) - 1
    len_defaults = len(defaults) if defaults else 0
    return len_args <= len_defaults
      try:
          args, _, _, defaults = inspect.getargspec(obj)
      except TypeError:
          return False
    args, _, _, defaults = inspect.getargspec(obj)
    len_args = len(args) if function else len(args) - 1
    len_defaults = len(defaults) if defaults else 0
    return len_args <= len_defaults
    args, _, _, defaults = inspect.getargspec(obj)
    len_args = len(args) if function else len(args) - 1
    len_defaults = len(defaults) if defaults else 0
    return len_args <= len_defaults
    args, _, _, defaults = inspect.getargspec(obj)
    len_args = len(args) if function else len(args) - 1
    len_defaults = len(defaults) if defaults else 0
    return len_args <= len_defaults
    args, _, _, defaults = inspect.getargspec(obj)
    len_args = len(args) if function else len(args) - 1
    len_defaults = len(defaults) if defaults else 0
    return len_args <= len_defaults
  
  
  def get_component(obj, attr_name):
      """
      Given an object, and an attribute name,
keep keep keep keep replace replace replace replace keep keep keep keep keep
 Fix duplicated database queries for paginated lists.

Closes #713. 
rest_framework/fields.py