      except ImportError:
          Image = None
  
  
  def get_concrete_model(model_cls):
      try:
          return model_cls._meta.concrete_model
      except AttributeError:
          # 1.3 does not include concrete model
 
</s> remove         model_name = BasicPermModel._meta.module_name
 </s> add         model_name = get_model_name(BasicPermModel) </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             '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)
def get_model_name(model_cls):
    try:
        return model_cls._meta.model_name
    except AttributeError:
        # < 1.6 used module_name instead of model_name
        return model_cls._meta.module_name


      except ImportError:
          Image = None
  
  
def get_model_name(model_cls):
    try:
        return model_cls._meta.model_name
    except AttributeError:
        # < 1.6 used module_name instead of model_name
        return model_cls._meta.module_name


  def get_concrete_model(model_cls):
      try:
          return model_cls._meta.concrete_model
      except AttributeError:
          # 1.3 does not include concrete model
keep keep keep add keep keep keep keep keep
 Address pending deprecation of Model._meta.module_name in Django 1.6 
rest_framework/compat.py