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()