#NEWLINE# def _alter_many_to_many( self , model , old_field , new_field , strict ) : #NEWLINE# #INDENT# '\n        Alters M2Ms to repoint their to= endpoints.\n        ' #NEWLINE# if ( old_field . remote_field . through . _meta . db_table != new_field . remote_field . through . _meta . db_table ) : #NEWLINE# #INDENT# self . alter_db_table ( old_field . remote_field . through , old_field . remote_field . through . _meta . db_table , new_field . remote_field . through . _meta . db_table ) #NEWLINE# #UNINDENT# self . alter_field ( new_field . remote_field . through , old_field . remote_field . through . _meta . get_field ( old_field . m2m_reverse_field_name ( ) ) , new_field . remote_field . through . _meta . get_field ( new_field . m2m_reverse_field_name ( ) ) ) #NEWLINE# self . alter_field ( new_field . remote_field . through , old_field . remote_field . through . _meta . get_field ( old_field . m2m_field_name ( ) ) , new_field . remote_field . through . _meta . get_field ( new_field . m2m_field_name ( ) ) )