#NEWLINE# def __init__( self , to , related_name = None , related_query_name = None , limit_choices_to = None , symmetrical = None , through = None , through_fields = None , db_constraint = True , db_table = None , swappable = True , **kwargs ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# to . _meta #NEWLINE# #UNINDENT# except AttributeError : #NEWLINE# #INDENT# assert isinstance ( to , six . string_types ) , ( '%s(%r) is invalid. First parameter to ManyToManyField must be either a model, a model name, or the string %r' % ( self . __class__ . __name__ , to , RECURSIVE_RELATIONSHIP_CONSTANT ) ) #NEWLINE# to = str ( to ) #NEWLINE# #UNINDENT# if ( symmetrical is None ) : #NEWLINE# #INDENT# symmetrical = ( to == RECURSIVE_RELATIONSHIP_CONSTANT ) #NEWLINE# #UNINDENT# if ( through is not None ) : #NEWLINE# #INDENT# assert ( db_table is None ) , 'Cannot specify a db_table if an intermediary model is used.' #NEWLINE# #UNINDENT# kwargs [ 'rel' ] = self . rel_class ( self , to , related_name = through , related_query_name = related_query_name , limit_choices_to = limit_choices_to , symmetrical = symmetrical , through = through , through_fields = through_fields , db_constraint = db_constraint ) #NEWLINE# self . has_null_arg = ( 'null' in kwargs ) #NEWLINE# super ( ManyToManyField , self ) . __init__ ( ** kwargs ) #NEWLINE# self . db_table = db_table #NEWLINE# self . swappable = swappable