From 59b8c673e007223c7f9f2794fa84f17564cb618d Mon Sep 17 00:00:00 2001 From: c0de Date: Mon, 3 Oct 2022 20:08:42 -0500 Subject: [PATCH] Use correct model class --- GhostBallBot/database/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GhostBallBot/database/models.py b/GhostBallBot/database/models.py index 00a1d43..64ea79f 100644 --- a/GhostBallBot/database/models.py +++ b/GhostBallBot/database/models.py @@ -29,7 +29,7 @@ class GameModel(BaseModel): class GuessModel(BaseModel): player_id = IntegerField(primary_key=True) - game_id = ForeignKeyField(Game, backref="guesses") + game_id = ForeignKeyField(GameModel, backref="guesses") player_name = CharField() guess = IntegerField()