  from __future__ import unicode_literals
  
  from django.http import Http404
  
  from rest_framework.compat import get_model_name
  
  SAFE_METHODS = ('GET', 'HEAD', 'OPTIONS')
  
  
  class BasePermission(object):
      """
 
</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 </s> remove         model_name = get_model_name(BasicPermModel)
 </s> add         model_name = BasicPermModel._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, guardian, unittest
 </s> add from rest_framework.compat import guardian, unittest
  from __future__ import unicode_literals
  
  from django.http import Http404
  


  SAFE_METHODS = ('GET', 'HEAD', 'OPTIONS')
  
  
  class BasePermission(object):
      """
keep keep keep keep replace replace keep keep keep keep keep
 Remove Django 1.5 get_model_name fallback 
rest_framework/permissions.py