#NEWLINE# def __init__( self , doc , field_name , output_name = None ) : #NEWLINE# #INDENT# self . collection = doc . _meta [ 'collection' ] #NEWLINE# self . db_field = getattr ( doc , field_name ) . db_field #NEWLINE# self . doc = doc #NEWLINE# self . output_name = output_name