  
  ########## Resource Mixin ##########
  
  class ResourceMixin(object):
      @property
      def CONTENT(self):
          if not hasattr(self, '_content'):
              self._content = self.validate_request(self.DATA, self.FILES)
          return self._content
 
</s> remove             self._content = self._get_content()
 </s> add             self._content = self.validate_request(self.DATA, self.FILES) </s> remove     def _get_content(self):
 </s> add     def validate_request(self, data, files):
        """
        Given the request data return the cleaned, validated content.
        Typically raises a ErrorResponse with status code 400 (Bad Request) on failure.
        """ </s> remove     def object_to_data(self, obj):
        resource = self.resource(self)
        return resource.object_to_data(obj)
 </s> add  </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) </s> remove         return model_fields - set(as_tuple(exclude_fields))
 </s> add         return model_fields - set(as_tuple(self.exclude))
    """
    Provides request validation and response filtering behavior.
    """

    """
    Should be a class as described in the ``resources`` module.

    The ``resource`` is an object that maps a view onto it's representation on the server.

    It provides validation on the content of incoming requests,
    and filters the object representation into a serializable object for the response.
    """
    resource = None

  
  ########## Resource Mixin ##########
  
  class ResourceMixin(object):
    """
    Provides request validation and response filtering behavior.
    """

    """
    Should be a class as described in the ``resources`` module.

    The ``resource`` is an object that maps a view onto it's representation on the server.

    It provides validation on the content of incoming requests,
    and filters the object representation into a serializable object for the response.
    """
    resource = None

      @property
      def CONTENT(self):
          if not hasattr(self, '_content'):
              self._content = self.validate_request(self.DATA, self.FILES)
          return self._content
keep keep keep add keep keep keep keep keep
 Sorting out resources.  Doing some crazy magic automatic url resolving stuff.  Yum. 
djangorestframework/mixins.py