From d06a8cea43b992e958c886724f3f502a4d78d16c Mon Sep 17 00:00:00 2001 From: Raz Date: Sat, 12 Oct 2024 16:12:14 +0200 Subject: [PATCH 1/2] licenceid limit to 50 --- tournaments/models/player_registration.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tournaments/models/player_registration.py b/tournaments/models/player_registration.py index 6b10736..b35badb 100644 --- a/tournaments/models/player_registration.py +++ b/tournaments/models/player_registration.py @@ -7,7 +7,7 @@ class PlayerRegistration(models.Model): team_registration = models.ForeignKey(TeamRegistration, on_delete=models.CASCADE) 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) + licence_id = models.CharField(max_length=50, null=True, blank=True) rank = models.IntegerField(null=True, blank=True) #has_paid = models.BooleanField(default=False) #unranked = models.BooleanField(default=False) From 2878dde82e42faf3f9237554d542fb5edeebd5d3 Mon Sep 17 00:00:00 2001 From: Raz Date: Sat, 12 Oct 2024 16:17:08 +0200 Subject: [PATCH 2/2] licenceid limit to 50 --- ...0089_alter_playerregistration_licence_id.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 tournaments/migrations/0089_alter_playerregistration_licence_id.py diff --git a/tournaments/migrations/0089_alter_playerregistration_licence_id.py b/tournaments/migrations/0089_alter_playerregistration_licence_id.py new file mode 100644 index 0000000..4412e4d --- /dev/null +++ b/tournaments/migrations/0089_alter_playerregistration_licence_id.py @@ -0,0 +1,18 @@ +# Generated by Django 4.2.11 on 2024-10-12 14:14 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('tournaments', '0088_groupstage_step'), + ] + + operations = [ + migrations.AlterField( + model_name='playerregistration', + name='licence_id', + field=models.CharField(blank=True, max_length=50, null=True), + ), + ]