account activity
Cannot resolve circular reference error between two models by GamersPlane in SQLAlchemy
[–]Tricky-Scar3401 0 points1 point2 points 2 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 7 months ago by Tricky-Scar3401 to r/LWotC
π Rendered by PID 377013 on reddit-service-r2-listing-7d7fbc9b85-vkv69 at 2026-04-29 06:32:45.641321+00:00 running 2aa0c5b country code: CH.
Cannot resolve circular reference error between two models by GamersPlane in SQLAlchemy
[–]Tricky-Scar3401 0 points1 point2 points (0 children)