Fix Code generation

This commit is contained in:
Juhn-Vitus Saß
2025-03-15 14:59:53 +01:00
parent eba34fa2d4
commit 838eaab9be
2 changed files with 19 additions and 1 deletions

View File

@@ -6,7 +6,7 @@ import random, string
# Create your models here.
class QuizGame(models.Model):
host_user = models.ForeignKey(User, on_delete=models.CASCADE, related_name='host_user')
join_code = models.CharField(max_length=6, unique=True)
join_code = models.CharField(max_length=6, unique=True, blank=True)
quiz_id = models.ForeignKey(QivipQuiz, on_delete=models.CASCADE)
def save(self, *args, **kwargs):