#NEWLINE# def render( self , name , value , attrs = None ) : #NEWLINE# #INDENT# if ( value is None ) : #NEWLINE# #INDENT# attrs = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# #UNINDENT# if ( self . rel . model in self . admin_site . _registry ) : #NEWLINE# #INDENT# attrs [ 'class' ] = 'vManyToManyRawIdAdminField' #NEWLINE# #UNINDENT# if value : #NEWLINE# #INDENT# value = ',' . join ( ( force_text ( v ) for v in value ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# value = '' #NEWLINE# #UNINDENT# return super ( ManyToManyRawIdWidget , self ) . render ( name , value , attrs )