From 92dfca95479c107844b705574486d760eb67d507 Mon Sep 17 00:00:00 2001 From: Razmig Sarkissian Date: Tue, 1 Jul 2025 07:55:21 +0200 Subject: [PATCH] Add contact fields to player registration model --- ...ayerregistration_contact_email_and_more.py | 28 +++++++++++++++++++ tournaments/models/player_registration.py | 4 +++ 2 files changed, 32 insertions(+) create mode 100644 tournaments/migrations/0130_playerregistration_contact_email_and_more.py diff --git a/tournaments/migrations/0130_playerregistration_contact_email_and_more.py b/tournaments/migrations/0130_playerregistration_contact_email_and_more.py new file mode 100644 index 0000000..fd6223b --- /dev/null +++ b/tournaments/migrations/0130_playerregistration_contact_email_and_more.py @@ -0,0 +1,28 @@ +# Generated by Django 5.1 on 2025-06-25 14:38 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('tournaments', '0129_tournament_currency_code'), + ] + + operations = [ + migrations.AddField( + model_name='playerregistration', + name='contact_email', + field=models.CharField(blank=True, max_length=50, null=True), + ), + migrations.AddField( + model_name='playerregistration', + name='contact_name', + field=models.CharField(blank=True, max_length=50, null=True), + ), + migrations.AddField( + model_name='playerregistration', + name='contact_phone_number', + field=models.CharField(blank=True, max_length=50, null=True), + ), + ] diff --git a/tournaments/models/player_registration.py b/tournaments/models/player_registration.py index 7f3b80d..0b93ce8 100644 --- a/tournaments/models/player_registration.py +++ b/tournaments/models/player_registration.py @@ -47,6 +47,10 @@ class PlayerRegistration(TournamentSubModel): registration_status = models.IntegerField(choices=RegistrationStatus.choices, default=RegistrationStatus.WAITING) payment_id = models.CharField(max_length=255, blank=True, null=True) + contact_phone_number = models.CharField(max_length=50, null=True, blank=True) + contact_email = models.CharField(max_length=50, null=True, blank=True) + contact_name = models.CharField(max_length=200, null=True, blank=True) + def delete_dependencies(self): pass