      Convert an object into a serializable representation.
      """
      if isinstance(obj, dict):
          # dictionaries
          return dict([ (key, _object_to_data(val)) for key, val in obj.iteritems() ])    
      if isinstance(obj, (tuple, list, set, QuerySet)):
          # basic iterables
          return [_object_to_data(item) for item in obj]
      if isinstance(obj, models.Manager):
          # Manager objects
 
</s> remove         return [_object_to_data(item) for item in obj]
 </s> add         return [_object_to_data(item, resource) for item in obj] </s> remove         return [_object_to_data(item) for item in obj.all()]
 </s> add         return [_object_to_data(item, resource) for item in obj.all()] </s> remove def _object_to_data(obj):
 </s> add def _object_to_data(obj, resource=None): </s> remove         return _object_to_data(_model_to_dict(obj))
 </s> add         return _object_to_data(_model_to_dict(obj, resource))
        # TODO: apply same _model_to_dict logic fields/exclude here
        return dict([ (key, _object_to_data(val)) for key, val in obj.iteritems() ])
      Convert an object into a serializable representation.
      """
      if isinstance(obj, dict):
          # dictionaries
        # TODO: apply same _model_to_dict logic fields/exclude here
        return dict([ (key, _object_to_data(val)) for key, val in obj.iteritems() ])
      if isinstance(obj, (tuple, list, set, QuerySet)):
          # basic iterables
          return [_object_to_data(item) for item in obj]
      if isinstance(obj, models.Manager):
          # Manager objects
keep keep keep keep replace keep keep keep keep keep
 Sorting out resources.  Doing some crazy magic automatic url resolving stuff.  Yum. 
djangorestframework/resources.py