#NEWLINE# def contribute_to_related_class( self , cls , related ) : #NEWLINE# #INDENT# if ( ( not self . remote_field . is_hidden ( ) ) and ( not related . related_model . _meta . swapped ) ) : #NEWLINE# #INDENT# setattr ( cls . _meta . concrete_model , related . get_accessor_name ( ) , self . related_accessor_class ( related ) ) #NEWLINE# if self . remote_field . limit_choices_to : #NEWLINE# #INDENT# cls . _meta . related_fkey_lookups . append ( self . remote_field . limit_choices_to )