  
  SAFE_METHODS = ['GET', 'HEAD', 'OPTIONS']
  
  from django.http import Http404
  from rest_framework.compat import oauth2_provider_scope, oauth2_constants
  
  
  class BasePermission(object):
      """
      A base class from which all permission classes should inherit.
 
</s> remove from rest_framework.compat import django_filters, six, guardian
 </s> add from rest_framework.compat import django_filters, six, guardian, get_model_name </s> remove from rest_framework.compat import guardian
 </s> add from rest_framework.compat import guardian, get_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 = BasicPermModel._meta.module_name
 </s> add         model_name = get_model_name(BasicPermModel)
from rest_framework.compat import (get_model_name, oauth2_provider_scope,
                                   oauth2_constants)
  
  SAFE_METHODS = ['GET', 'HEAD', 'OPTIONS']
  
  from django.http import Http404
from rest_framework.compat import (get_model_name, oauth2_provider_scope,
                                   oauth2_constants)
  
  
  class BasePermission(object):
      """
      A base class from which all permission classes should inherit.
keep keep keep keep replace keep keep keep keep keep
 Address pending deprecation of Model._meta.module_name in Django 1.6 
rest_framework/permissions.py