generate uuid on the model

This commit is contained in:
c0de 2022-12-09 21:34:47 -06:00
parent 7577e3afee
commit 59d1dc4afb

View File

@ -39,7 +39,7 @@ class GuessManager(BaseGameManager):
# Create the guess (or allow us to say update successful) # Create the guess (or allow us to say update successful)
_, created = Guess.get_or_create( _, created = Guess.get_or_create(
guess_id=uuid.uuid4(), game_id=self.game.game_id, player_id=player.player_id game_id=self.game.game_id, player_id=player.player_id
) )
Guess.update({"guess": value}).where( Guess.update({"guess": value}).where(