#NEWLINE# def _handle_join( self , query , field , joins ) : #NEWLINE# #INDENT# if ( field . model_class != self . model ) : #NEWLINE# #INDENT# model_name = field . model_class . __name__ #NEWLINE# if ( model_name not in joins ) : #NEWLINE# #INDENT# query = query . join ( query . model_class ) #NEWLINE# joins . add ( model_name ) #NEWLINE# #UNINDENT# #UNINDENT# return query