fix: model, limite length of

tournament.name and winner_id can be null now
This commit is contained in:
2023-12-20 21:11:37 +01:00
parent 288252ab37
commit 56cfd563d7
2 changed files with 5 additions and 3 deletions

View File

@ -5,7 +5,7 @@ class GameModel(models.Model):
finished = models.BooleanField(default=False)
started = models.BooleanField(default=False)
winner_id = models.IntegerField()
winner_id = models.IntegerField(null=True, blank=True)
def create(self, users_id: [int]):
self.save()