code: def add_eager_constraints(self, models):
          
          key = "%s.%s" % (self._related.get_table(), self._other_key)
  
          self._query.where_in(key, self._get_eager_model_keys(models))
docs: Set the constraints for an eager load of the relation.
  
          :type models: list