From 5624f737bf5f9673344fbd338d5c286f4940ed11 Mon Sep 17 00:00:00 2001 From: Burathar Date: Sun, 19 Jul 2020 17:12:45 +0200 Subject: [PATCH] fix users association --- app/models/game.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/game.py b/app/models/game.py index 22b2539..befdb15 100644 --- a/app/models/game.py +++ b/app/models/game.py @@ -15,7 +15,7 @@ class Game(db.Model): 'GamePlayer', back_populates='game', cascade="save-update, merge, delete, delete-orphan") - users = association_proxy('game_players', 'user', + users = association_proxy('players', 'user', creator=lambda user: GamePlayer(user=user)) objectives = db.relationship( 'Objective',