#NEWLINE# def contribute_to_related_class( self , cls , related ) : #NEWLINE# #INDENT# super ( ForeignKey , self ) . contribute_to_related_class ( cls , related ) #NEWLINE# if ( self . remote_field . field_name is None ) : #NEWLINE# #INDENT# self . remote_field . field_name = cls . _meta . pk . name