#NEWLINE# def remote_field_model( field ) : #NEWLINE# #INDENT# if ( hasattr ( field , 'remote_field' ) and field . remote_field ) : #NEWLINE# #INDENT# remote_field_model = field . remote_field . model #NEWLINE# if ( field == 'self' ) : #NEWLINE# #INDENT# return field . model #NEWLINE# #UNINDENT# return remote_field_model #NEWLINE# #UNINDENT# if ( hasattr ( field , 'rel' ) and field . rel ) : #NEWLINE# #INDENT# return field . rel . to