We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
dict()
1 parent 7065c7b commit d0bd01fCopy full SHA for d0bd01f
1 file changed
docs_src/advanced/self_referential/tutorial001.py
@@ -12,7 +12,8 @@ class Villain(SQLModel, table=True):
12
foreign_key="villain.id", default=None, nullable=True
13
)
14
boss: Optional["Villain"] = Relationship(
15
- back_populates="minions", sa_relationship_kwargs=dict(remote_side="Villain.id")
+ back_populates="minions",
16
+ sa_relationship_kwargs={"remote_side": "Villain.id"},
17
18
minions: List["Villain"] = Relationship(back_populates="boss")
19
0 commit comments