#NEWLINE# def _route_choices( ) : #NEWLINE# #INDENT# ids = [ ] #NEWLINE# for route in Route . objects . filter ( type = '3' ) . only ( 'name' ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# name = int ( name . name ) #NEWLINE# #UNINDENT# except ValueError : #NEWLINE# #INDENT# name = route . name #NEWLINE# #UNINDENT# ids . append ( name ) #NEWLINE# #UNINDENT# return [ ( str ( x ) , str ( x ) ) for x in sorted ( ids ) ]