回答編集履歴
1
こんまおおい
test
CHANGED
@@ -8,7 +8,7 @@
|
|
8
8
|
|
9
9
|
|
10
10
|
|
11
|
-
**children=relationship("Childtest",
|
11
|
+
**children=relationship("Childtest", back_populates="oya")**
|
12
12
|
|
13
13
|
|
14
14
|
|
@@ -24,7 +24,7 @@
|
|
24
24
|
|
25
25
|
oyanoid=Column(Integer,ForeignKey**("oya.id")**)
|
26
26
|
|
27
|
-
**oya=relationship("Parenttest",
|
27
|
+
**oya=relationship("Parenttest", back_populates="children")**
|
28
28
|
|
29
29
|
|
30
30
|
|