def _save_detail(self, already_saved_object):
        for relation_name in self._get_relation_names():
            relation_value = self._get_relation_value(relation_name)
            if isinstance(relation_value, DB_Model):
                # many to one
                if relation_value not in already_saved_object:
                    relation_value.save(already_saved_object)
            elif isinstance(relation_value, list):
                # many to one
                for child in relation_value:
                    if isinstance(child, DB_Model):
                        if child not in already_saved_object:
                            child.save(already_saved_object)
dataset/ETHPy150Open goFrendiAsgard/kokoropy/kokoropy/model.py/DB_Model._save_detail/original