code: def init_relation(self, models, relation):
          
          for model in models:
              model.set_relation(relation, Result(None, self, model))
  
          return models
docs: Initialize the relation on a set of models.
  
          :type models: list
          :type relation:  str