diff --git a/games/models.py b/games/models.py index a2d8315..9a23ad9 100644 --- a/games/models.py +++ b/games/models.py @@ -6,7 +6,7 @@ class GameModel(models.Model): def create(self, users_id: [int]): self.save() for user_id in users_id: - GameMembersModel(game_id=self.pk, member_id=user_id) + GameMembersModel(game_id=self.pk, member_id=user_id).save() return self.pk class GameMembersModel(models.Model):