  except ImportError:
      pass
  
  
  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
  
  
  # MinValueValidator, MaxValueValidator et al. only accept `message` in 1.8+
  if django.VERSION >= (1, 8):
      from django.core.validators import MinValueValidator, MaxValueValidator
      from django.core.validators import MinLengthValidator, MaxLengthValidator
  else:
 
</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             'model_name': get_model_name(model_cls)
 </s> add             'model_name': model_cls._meta.model_name </s> remove         model_name = get_model_name(BasicPermModel)
 </s> add         model_name = BasicPermModel._meta.model_name </s> remove from rest_framework.compat import get_model_name, guardian, unittest
 </s> add from rest_framework.compat import guardian, unittest
  except ImportError:
      pass
  
  








  # MinValueValidator, MaxValueValidator et al. only accept `message` in 1.8+
  if django.VERSION >= (1, 8):
      from django.core.validators import MinValueValidator, MaxValueValidator
      from django.core.validators import MinLengthValidator, MaxLengthValidator
  else:
keep keep keep keep replace replace replace replace replace replace replace replace keep keep keep keep keep
 Remove Django 1.5 get_model_name fallback 
rest_framework/compat.py