#NEWLINE# def render_single_object( self , obj , serialiser = None , **response_kwargs ) : #NEWLINE# #INDENT# 'Helper to return a single object instance serialised.' #NEWLINE# if ( serialiser is None ) : #NEWLINE# #INDENT# serialiser = self . get_serialiser ( ) #NEWLINE# #UNINDENT# serialiser_kwargs = response_kwargs . pop ( 'serialiser_kwargs' , None ) #NEWLINE# if ( response_kwargs is None ) : #NEWLINE# #INDENT# serialiser_kwargs = self . get_serialiser_kwargs ( ) #NEWLINE# #UNINDENT# data = serialiser . object_deflate ( obj , ** serialiser_kwargs ) #NEWLINE# return self . create_response ( data , ** response_kwargs )