#NEWLINE# def formfield_for_manytomany( self , db_field , request = None , **kwargs ) : #NEWLINE# #INDENT# '\n        Get a form Field for a ManyToManyField.\n        ' #NEWLINE# if ( not db_field . rel . through . _meta . auto_created ) : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# db = kwargs . get ( 'using' ) #NEWLINE# if ( db_field . name in self . raw_id_fields ) : #NEWLINE# #INDENT# kwargs [ 'widget' ] = widgets . ManyToManyRawIdWidget ( db_field . rel , self . admin_site , using = db ) #NEWLINE# kwargs [ 'help_text' ] = '' #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( db_field . name in ( list ( self . filter_vertical ) + list ( self . filter_horizontal ) ) ) : #NEWLINE# #INDENT# kwargs [ 'widget' ] = widgets . FilteredSelectMultiple ( db_field . verbose_name , ( db_field . name in self . filter_vertical ) ) #NEWLINE# #UNINDENT# #UNINDENT# if ( not ( 'queryset' in kwargs ) ) : #NEWLINE# #INDENT# queryset = self . get_field_queryset ( db , db_field , request ) #NEWLINE# if ( queryset is not None ) : #NEWLINE# #INDENT# kwargs [ 'queryset' ] = queryset #NEWLINE# #UNINDENT# #UNINDENT# return db_field . formfield ( ** kwargs )