#NEWLINE# def __init__( self , * args , **kwargs ) : #NEWLINE# #INDENT# tree = kwargs . pop ( 'tree' , None ) #NEWLINE# tree_item = kwargs . pop ( 'tree_item' , None ) #NEWLINE# super ( TreeItemForm , self ) . __init__ ( * args , ** kwargs ) #NEWLINE# self . fields [ 'tree_item' ] = self . choice_field_class ( tree , initial = tree_item , widget = forms . Select ( attrs = { #NEWLINE# #INDENT# 'autocomplete' : 'off' , #NEWLINE# #UNINDENT# } ) )