          }
  
          # give everyone model level permissions, as we are not testing those
          everyone = Group.objects.create(name='everyone')
          model_name = get_model_name(BasicPermModel)
          app_label = BasicPermModel._meta.app_label
          f = '{0}_{1}'.format
          perms = {
              'view': f('view', model_name),
              'change': f('change', 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 </s> remove from rest_framework.compat import get_model_name

 </s> add  </s> remove             'model_name': get_model_name(model_cls)
 </s> add             'model_name': model_cls._meta.model_name </s> remove from rest_framework.compat import (
    distinct, django_filters, get_model_name, guardian
)
 </s> add from rest_framework.compat import distinct, django_filters, guardian
        model_name = BasicPermModel._meta.model_name
          }
  
          # give everyone model level permissions, as we are not testing those
          everyone = Group.objects.create(name='everyone')
        model_name = BasicPermModel._meta.model_name
          app_label = BasicPermModel._meta.app_label
          f = '{0}_{1}'.format
          perms = {
              'view': f('view', model_name),
              'change': f('change', model_name),
keep keep keep keep replace keep keep keep keep keep
 Remove Django 1.5 get_model_name fallback 
tests/test_permissions.py