質問するログイン新規登録

回答編集履歴

1

こんまおおい

2020/11/07 03:28

投稿

hentaiman
hentaiman

スコア6428

answer CHANGED
@@ -3,7 +3,7 @@
3
3
  id=Column(Integer,primary_key=True,unique=True)
4
4
  ~~**children=relationship("Childtest")**~~
5
5
 
6
- **children=relationship("Childtest", , back_populates="oya")**
6
+ **children=relationship("Childtest", back_populates="oya")**
7
7
 
8
8
  > class Childstest(Base):
9
9
  __tablename__="kodomo"
@@ -11,6 +11,6 @@
11
11
  oyanoid=Column(Integer,ForeignKey~~**("parenttest.id")**~~)
12
12
 
13
13
  oyanoid=Column(Integer,ForeignKey**("oya.id")**)
14
- **oya=relationship("Parenttest", , back_populates="children")**
14
+ **oya=relationship("Parenttest", back_populates="children")**
15
15
 
16
16
  ※動作確認はしていない