  from django.http.multipartparser import LimitBytes
  
  from djangorestframework import status
  from djangorestframework.parsers import FormParser, MultiPartParser
  from djangorestframework.resources import Resource
  from djangorestframework.response import Response, ErrorResponse
  from djangorestframework.utils import as_tuple, MSIE_USER_AGENT_REGEX
  from djangorestframework.utils.mediatypes import is_form_media_type, order_by_precedence
  
  from decimal import Decimal
 
</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
from djangorestframework.resources import Resource, FormResource, ModelResource
  from django.http.multipartparser import LimitBytes
  
  from djangorestframework import status
  from djangorestframework.parsers import FormParser, MultiPartParser
from djangorestframework.resources import Resource, FormResource, ModelResource
  from djangorestframework.response import Response, ErrorResponse
  from djangorestframework.utils import as_tuple, MSIE_USER_AGENT_REGEX
  from djangorestframework.utils.mediatypes import is_form_media_type, order_by_precedence
  
  from decimal import Decimal
keep keep keep keep replace keep keep keep keep keep
 forms/models can be set on the view as well as the resource 
djangorestframework/mixins.py