#NEWLINE# def __init__( self , label = None , validators = None , query_factory = None , get_label = None , allow_blank = False , blank_text = '' , **kwargs ) : #NEWLINE# #INDENT# super ( QuerySelectField , self ) . __init__ ( label , validators , ** kwargs ) #NEWLINE# self . query_factory = query_factory #NEWLINE# self . get_pk = ( lambda x : x . id ) #NEWLINE# if ( get_label is None ) : #NEWLINE# #INDENT# self . get_label = ( lambda x : x ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if isinstance ( get_label , ( str , basestring ) ) : #NEWLINE# #INDENT# self . get_label = operator . attrgetter ( get_label ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . get_label = get_label #NEWLINE# #UNINDENT# #UNINDENT# self . allow_blank = allow_blank #NEWLINE# self . blank_text = blank_text #NEWLINE# self . query = None #NEWLINE# self . _object_list = None