  from djangorestframework.compat import RequestFactory
  from django.contrib.auth.models import Group, User
  from djangorestframework.mixins import CreateModelMixin, PaginatorMixin
  from djangorestframework.resources import ModelResource
  from djangorestframework.response import Response
  from djangorestframework.tests.models import CustomUser
  from djangorestframework.tests.testcases import TestModelsTestCase
  from djangorestframework.views import View
  
  
 
</s> remove from djangorestframework.mixins import CreateModelMixin, PaginatorMixin
 </s> add from djangorestframework.mixins import CreateModelMixin, PaginatorMixin, ReadModelMixin </s> remove             instance = model.objects.get(self.build_query(*args, **kwargs))
 </s> add             instance = self.get_object(*args, **kwargs) </s> remove             self.model_instance = model.objects.get(self.build_query(*args, **kwargs))
 </s> add             self.model_instance = self.get_object(*args, **kwargs) </s> remove             self.model_instance = model.objects.get(self.build_query(*args, **kwargs))
 </s> add             self.model_instance = self.get_object(*args, **kwargs)
from djangorestframework.response import Response, ErrorResponse
  from djangorestframework.compat import RequestFactory
  from django.contrib.auth.models import Group, User
  from djangorestframework.mixins import CreateModelMixin, PaginatorMixin
  from djangorestframework.resources import ModelResource
from djangorestframework.response import Response, ErrorResponse
  from djangorestframework.tests.models import CustomUser
  from djangorestframework.tests.testcases import TestModelsTestCase
  from djangorestframework.views import View
  
  
keep keep keep keep replace keep keep keep keep keep
 Add a get_object method to the ModelMixin, and tests 
djangorestframework/tests/mixins.py