#NEWLINE# def get_intermediary( models ) : #NEWLINE# #INDENT# res = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for model in models : #NEWLINE# #INDENT# res . update ( ( ( m2m . rel . through , models . related ) for m2m in model . _meta . many_to_many if ( not m2m . rel . through . _meta . auto_created ) ) ) #NEWLINE# #UNINDENT# return res