def has_permission(permission, context, request):
 return request.has_permission(permission, context)

def has_permission ( permission , context , request ) : return request . has_permission ( permission , context )
check if the object has a permission args: obj_name : the name of or path to the object .