  from django.core.exceptions import ImproperlyConfigured
  from django.db import models
  from django.utils import six
  
  from rest_framework.compat import (
      distinct, django_filters, get_model_name, guardian
  )
  from rest_framework.settings import api_settings
  
  FilterSet = django_filters and django_filters.FilterSet or None
  
  
 
</s> remove from rest_framework.compat import get_model_name, guardian, unittest
 </s> add from rest_framework.compat import guardian, unittest </s> remove from rest_framework.compat import get_model_name

 </s> add  </s> remove         model_name = get_model_name(BasicPermModel)
 </s> add         model_name = BasicPermModel._meta.model_name </s> remove             'model_name': get_model_name(model_cls)
 </s> add             'model_name': model_cls._meta.model_name </s> remove             'model_name': get_model_name(model_cls)
 </s> add             'model_name': model_cls._meta.model_name
from rest_framework.compat import distinct, django_filters, guardian
  from django.core.exceptions import ImproperlyConfigured
  from django.db import models
  from django.utils import six
  
from rest_framework.compat import distinct, django_filters, guardian
from rest_framework.compat import distinct, django_filters, guardian
from rest_framework.compat import distinct, django_filters, guardian
  from rest_framework.settings import api_settings
  
  FilterSet = django_filters and django_filters.FilterSet or None
  
  
keep keep keep keep replace replace replace keep keep keep keep keep
 Remove Django 1.5 get_model_name fallback 
rest_framework/filters.py