#NEWLINE# def init_relation( self , models , relation ) : #NEWLINE# #INDENT# '\n        Initialize the relation on a set of models.\n\n        :type models: list\n        :type relation: str\n        ' #NEWLINE# for model in models : #NEWLINE# #INDENT# model . set_relation ( relation , Result ( self . _related . new_collection ( ) , self , model ) ) #NEWLINE# #UNINDENT# return models