  
  
      def validate_request(self, data, files):
          """
          Given some content as input return some cleaned, validated content.
          Raises a :exc:`response.ErrorResponse` with status code 400 (Bad Request) on failure.
          
 
</s> remove     
 </s> add     form = None

    def __init__(self, view):
        """
        Allow a :attr:`form` attributes set on the :class:`View` to override
        the :attr:`form` attribute set on the :class:`Resource`.
        """
        super(FormResource, self).__init__(view)

        if getattr(view, 'form', None):
            self.form = view.form </s> remove         resource = self.resource(self)
        return resource.validate_request(data, files)
 </s> add         return self._resource.validate_request(data, files) </s> remove     resource = Resource
 </s> add     resource = None </s> remove     form = None
 </s> add 
    def __init__(self, view):
        """
        Allow :attr:`form` and :attr:`model` attributes set on the
        :class:`View` to override the :attr:`form` and :attr:`model`
        attributes set on the :class:`Resource`.
        """
        super(ModelResource, self).__init__(view)

        if getattr(view, 'model', None):
            self.model = view.model

  
  
    def __init__(self, view):
        """
        Allow :attr:`form` and :attr:`model` attributes set on the
        :class:`View` to override the :attr:`form` and :attr:`model`
        attributes set on the :class:`Resource`.
        """
        super(ModelResource, self).__init__(view)

        if getattr(view, 'model', None):
            self.model = view.model

      def validate_request(self, data, files):
          """
          Given some content as input return some cleaned, validated content.
          Raises a :exc:`response.ErrorResponse` with status code 400 (Bad Request) on failure.
          
keep add keep keep keep keep keep
 forms/models can be set on the view as well as the resource 
djangorestframework/resources.py