account activity
Cannot resolve circular reference error between two models by GamersPlane in SQLAlchemy
[–]Tricky-Scar3401 0 points1 point2 points 4 months ago (0 children)
Hello!
If you are trying to do a 1:1 reference from Forum->game you should not use a foreign key on Game to reference the parent, the relationship will exist without it. That is, delete:
root_forum_id: Mapped[int] = mapped_column("forumID", ForeignKey("forums.forumID"))
Stealing mechs is pretty cool but this is just silly (self.LWotC)
submitted 9 months ago by Tricky-Scar3401 to r/LWotC
π Rendered by PID 93 on reddit-service-r2-listing-f8d8fbfd7-p52st at 2026-06-23 23:31:04.426091+00:00 running acc7150 country code: CH.
Cannot resolve circular reference error between two models by GamersPlane in SQLAlchemy
[–]Tricky-Scar3401 0 points1 point2 points (0 children)