  
      def get_required_object_permissions(self, method, model_cls):
          kwargs = {
              'app_label': model_cls._meta.app_label,
              'model_name': get_model_name(model_cls)
          }
          return [perm % kwargs for perm in self.perms_map[method]]
  
      def has_object_permission(self, request, view, obj):
          try:
 
</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 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


 </s> add  </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

 </s> add 
            'model_name': model_cls._meta.model_name
  
      def get_required_object_permissions(self, method, model_cls):
          kwargs = {
              'app_label': model_cls._meta.app_label,
            'model_name': model_cls._meta.model_name
          }
          return [perm % kwargs for perm in self.perms_map[method]]
  
      def has_object_permission(self, request, view, obj):
          try:
keep keep keep keep replace keep keep keep keep keep
 Remove Django 1.5 get_model_name fallback 
rest_framework/permissions.py