#NEWLINE# def prepare( self , request , instance , template = None , brief = False , **params ) : #NEWLINE# #INDENT# if ( template is None ) : #NEWLINE# #INDENT# template = ( templates . BriefField if posthook else self . template ) #NEWLINE# #UNINDENT# posthook = functools . partial ( field_posthook , request = request ) #NEWLINE# return serialize ( instance , posthook = posthook , ** template )