... . restaurant ) 以下は、Python API の機能を使って実行できる操作の例です。 2つの Place を作成する: >>> p1 = Place ( name = "Demon Dogs" , address = "944 W. Fullerton" ) >>> p1 . save () >>> p2 = Place ( name = "Ace Hardware" , address = "1013 N. Ashlan ... t_dogs = True , serves_pizza = False ) >>> r . save () Restaurant は自身の place にアクセスできます: >>> r . place <Place: Demon Dogs the place> Place は自身の restaurant に、利用可能ならアクセスできます: >>> p1 . restaurant <Restaurant: Demon Dogs th ... the place> また、place を逆方向の割り当てを使用してセットします: >>> p1 . restaurant = r >>> p1 . restaurant <Restaurant: Demon Dogs the restaurant> オブジェクトを1対1のリレーションシップに割り当てるには、オブジェクトを保存する必要があることに注意して ... ... . restaurant ) 以下は、Python API の機能を使って実行できる操作の例です。 2つの Place を作成する: >>> p1 = Place ( name = "Demon Dogs" , address = "944 W. Fullerton" ) >>> p1 . save () >>> p2 = Place ( name = "Ace Hardware" , address = "1013 N. Ashlan ... t_dogs = True , serves_pizza = False ) >>> r . save () Restaurant は自身の place にアクセスできます: >>> r . place <Place: Demon Dogs the place> Place は自身の restaurant に、利用可能ならアクセスできます: >>> p1 . restaurant <Restaurant: Demon Dogs th ... the place> また、place を逆方向の割り当てを使用してセットします: >>> p1 . restaurant = r >>> p1 . restaurant <Restaurant: Demon Dogs the restaurant> オブジェクトを1対1のリレーションシップに割り当てるには、オブジェクトを保存する必要があることに注意して ... 2026年10月08日