#NEWLINE# def __init__( self ) : #NEWLINE# #INDENT# self . _querysets = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# self . _relationships = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# self . _output_fields = [ ] #NEWLINE# for coll in self . collections : #NEWLINE# #INDENT# name = coll . _meta [ 'collection' ] #NEWLINE# self . _querysets [ name ] = getattr ( coll , 'objects' ) #NEWLINE# if ( coll == self . primary_collection ) : #NEWLINE# #INDENT# self . _primary_queryset = self . _querysets [ name ] #NEWLINE# #UNINDENT# self . _contribute_fields ( coll ) #NEWLINE# #UNINDENT# self . _output_fields . extend ( self . calculated_fields_ordered )