#NEWLINE# def get_queryset( self ) : #NEWLINE# #INDENT# query = self . get_query_from_request ( ) #NEWLINE# blacklisted = self . is_blacklisted ( query ) #NEWLINE# nodes = Node . find ( query ) #NEWLINE# if node : #NEWLINE# #INDENT# non_retracted_list = [ node . _id for node in nodes if ( not node . is_retracted ) ] #NEWLINE# non_retracted_nodes = Node . find ( Q ( '_id' , 'in' , non_retracted_list ) ) #NEWLINE# return non_retracted_nodes #NEWLINE# #UNINDENT# return nodes