Browse Source

fix users association

testing
Burathar 5 years ago
parent
commit
5624f737bf
  1. 2
      app/models/game.py

2
app/models/game.py

@ -15,7 +15,7 @@ class Game(db.Model):
'GamePlayer', 'GamePlayer',
back_populates='game', back_populates='game',
cascade="save-update, merge, delete, delete-orphan") cascade="save-update, merge, delete, delete-orphan")
users = association_proxy('game_players', 'user', users = association_proxy('players', 'user',
creator=lambda user: GamePlayer(user=user)) creator=lambda user: GamePlayer(user=user))
objectives = db.relationship( objectives = db.relationship(
'Objective', 'Objective',

Loading…
Cancel
Save