Add contact fields to player registration model

apikeys
Razmig Sarkissian 4 months ago
parent e47ef1427d
commit 92dfca9547
  1. 28
      tournaments/migrations/0130_playerregistration_contact_email_and_more.py
  2. 4
      tournaments/models/player_registration.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),
),
]

@ -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

Loading…
Cancel
Save