def get_nodes(self, request):
nodes = []<EOL>for scientist in Scientist.objects.filter(current=True, visible=True):<EOL><INDENT>node = NavigationNode(<EOL>scientist.full_name,<EOL>reverse('<STR_LIT>', args=(scientist.slug,)),<EOL>scientist.slug<EOL>)<EOL>nodes.append(node)<EOL><DEDENT>if Scientist.objects.filter(current=False, visible=True):<EOL><INDENT>node = NavigationNode(<EOL>'<STR_LIT>',<EOL>reverse('<STR_LIT>') + '<STR_LIT>',<EOL>scientist.slug<EOL>)<EOL>nodes.append(node)<EOL><DEDENT>return nodes<EOL>
This method is used to build the menu tree.