From 7e67266d7d8d0669e7837ff8edbb91ffc1de54f2 Mon Sep 17 00:00:00 2001 From: Razmig Sarkissian Date: Wed, 12 Jun 2024 13:22:05 +0200 Subject: [PATCH] fix blank last name --- tournaments/models/player_registration.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tournaments/models/player_registration.py b/tournaments/models/player_registration.py index f303cbb..1a03d65 100644 --- a/tournaments/models/player_registration.py +++ b/tournaments/models/player_registration.py @@ -5,8 +5,8 @@ import uuid class PlayerRegistration(models.Model): id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=True) team_registration = models.ForeignKey(TeamRegistration, on_delete=models.CASCADE) - first_name = models.CharField(max_length=50) - last_name = models.CharField(max_length=50) + first_name = models.CharField(max_length=50, blank=True) + last_name = models.CharField(max_length=50, blank=True) licence_id = models.CharField(max_length=20, null=True, blank=True) rank = models.IntegerField(null=True, blank=True) #has_paid = models.BooleanField(default=False)