          }
  
          # give everyone model level permissions, as we are not testing those
          everyone = Group.objects.create(name='everyone')
          model_name = BasicPermModel._meta.module_name
          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': model_cls._meta.module_name
 </s> add             'model_name': get_model_name(model_cls) </s> remove             'model_name': model_cls._meta.module_name
 </s> add             'model_name': get_model_name(model_cls) </s> remove             'model_name': model_cls._meta.module_name
 </s> add             'model_name': get_model_name(model_cls) </s> remove from rest_framework.compat import oauth2_provider_scope, oauth2_constants
 </s> add from rest_framework.compat import (get_model_name, oauth2_provider_scope,
                                   oauth2_constants)
        model_name = get_model_name(BasicPermModel)
          }
  
          # 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),
keep keep keep keep replace keep keep keep keep keep
 Address pending deprecation of Model._meta.module_name in Django 1.6 
rest_framework/tests/test_permissions.py