#NEWLINE# def contribute_to_related_class( self , cls , related ) : #NEWLINE# #INDENT# if ( ( not self . rel . is_hidden ( ) ) and ( not related . model . _meta . swapped ) ) : #NEWLINE# #INDENT# setattr ( cls , related . get_accessor_name ( ) , ManyRelatedObjectsDescriptor ( related ) ) #NEWLINE# #UNINDENT# self . m2m_column_name = curry ( self . _get_m2m_attr , related , 'column' ) #NEWLINE# self . m2m_reverse_name = curry ( self . _get_m2m_reverse_attr , related , 'column' ) #NEWLINE# self . m2m_field_name = curry ( self . _get_m2m_attr , cls , 'name' ) #NEWLINE# self . m2m_reverse_field_name = curry ( self . _get_m2m_reverse_attr , related , 'name' ) #NEWLINE# get_m2m_rel = curry ( self . _get_m2m_attr , related , 'rel' ) #NEWLINE# self . m2m_target_field_name = ( lambda : get_m2m_rel ( ) . field_name ) #NEWLINE# get_m2m_reverse_rel = curry ( self . _get_m2m_reverse_attr , related , 'rel' ) #NEWLINE# self . m2m_reverse_target_field_name = ( lambda : get_m2m_reverse_rel ( ) . field_name )