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