  from rest_framework import generics, status, pagination, filters, serializers
  from rest_framework.compat import django_filters
  from rest_framework.test import APIRequestFactory
  from rest_framework.tests.models import BasicModel
  
  factory = APIRequestFactory()
  
  
 
</s> remove 
class OneToOneTarget(models.Model):
    name = models.CharField(max_length=100)
 </s> add from .models import OneToOneTarget </s> remove class FilterableItem(models.Model):
    text = models.CharField(max_length=100)
    decimal = models.DecimalField(max_digits=4, decimal_places=2)
    date = models.DateField()


 </s> add  </s> remove     ManyToManyModel, Person, ReadOnlyManyToManyModel, Photo, RESTFrameworkModel)
 </s> add     ManyToManyModel, Person, ReadOnlyManyToManyModel, Photo, RESTFrameworkModel, AMOAFModel, DVOAFModel) </s> remove         class DVOAFModel(RESTFrameworkModel):
            positive_integer_field = models.PositiveIntegerField(blank=True)
            positive_small_integer_field = models.PositiveSmallIntegerField(blank=True)
            email_field = models.EmailField(blank=True)
            file_field = models.FileField(blank=True)
            image_field = models.ImageField(blank=True)
            slug_field = models.SlugField(blank=True)
            url_field = models.URLField(blank=True)
 </s> add 
from .models import FilterableItem
  from rest_framework import generics, status, pagination, filters, serializers
  from rest_framework.compat import django_filters
  from rest_framework.test import APIRequestFactory
  from rest_framework.tests.models import BasicModel
from .models import FilterableItem
  
  factory = APIRequestFactory()
  
  
keep keep keep add keep keep keep keep
 Moved all the reused models to the models files to avoid conflicts with the refactored apps. 
rest_framework/tests/test_pagination.py