#NEWLINE# def render_as_api( request , obj ) : #NEWLINE# #INDENT# if api_settings . ENABLED : #NEWLINE# #INDENT# for mimetype in ( a . split ( ';' ) [ 0 ] for a in request . META . get ( 'HTTP_ACCEPT' , '' ) . split ( ',' ) ) : #NEWLINE# #INDENT# if response_serializer . serializable ( mimetype ) : #NEWLINE# #INDENT# return response_serializer . serialize ( object_serializer . serialize ( request , obj , FULL ) , mimetype )