      
      return data
  
  
  def _object_to_data(obj):
      """
      Convert an object into a serializable representation.
      """
      if isinstance(obj, dict):
          # dictionaries
 
</s> remove         return dict([ (key, _object_to_data(val)) for key, val in obj.iteritems() ])    
 </s> add         # TODO: apply same _model_to_dict logic fields/exclude here
        return dict([ (key, _object_to_data(val)) for key, val in obj.iteritems() ]) </s> remove     def object_to_data(self, obj):
        return _object_to_data(obj)
 </s> add     def filter_response(self, obj):
        """
        Given the response content, filter it into a serializable object.
        """
        return _object_to_data(obj, self) </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 resource.validate(self.DATA, self.FILES)
 </s> add         return resource.validate_request(data, files)

    def filter_response(self, obj):
        """
        Given the response content, filter it into a serializable object.
        """
        resource = self.resource(self)
        return resource.filter_response(obj)
def _object_to_data(obj, resource=None):
      
      return data
  
  
def _object_to_data(obj, resource=None):
      """
      Convert an object into a serializable representation.
      """
      if isinstance(obj, dict):
          # dictionaries
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