def get_credit_request_status(username, course_key):
 credit_request = CreditRequest.get_user_request_status(username, course_key)
 return ({'uuid': credit_request.uuid, 'timestamp': credit_request.modified, 'course_key': credit_request.course.course_key, 'provider': {'id': credit_request.provider.provider_id, 'display_name': credit_request.provider.display_name}, 'status': credit_request.status} if credit_request else {})

def get_credit_request_status ( username , course_key ) : credit_request = CreditRequest . get_user_request_status ( username , course_key ) return ( { 'uuid' : credit_request . uuid , 'timestamp' : credit_request . modified , 'course_key' : credit_request . course . course_key , 'provider' : { 'id' : credit_request . provider . provider_id , 'display_name' : credit_request . provider . display_name } , 'status' : credit_request . status } if credit_request else { } )
get the credit request status .