remove player regs from teamscore

clubs
Razmig Sarkissian 1 year ago
parent 87db59ec22
commit 97d17dcb8b
  1. 17
      tournaments/migrations/0061_remove_teamscore_player_registrations.py
  2. 1
      tournaments/models/team_score.py

@ -0,0 +1,17 @@
# Generated by Django 4.2.11 on 2024-05-29 09:33
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('tournaments', '0060_match_confirmed'),
]
operations = [
migrations.RemoveField(
model_name='teamscore',
name='player_registrations',
),
]

@ -6,7 +6,6 @@ class TeamScore(models.Model):
id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=True)
match = models.ForeignKey(Match, on_delete=models.CASCADE, related_name="team_scores")
team_registration = models.ForeignKey(TeamRegistration, on_delete=models.CASCADE, null=True, blank=True)
player_registrations = models.ManyToManyField(PlayerRegistration, blank=True)
score = models.CharField(max_length=50, null=True, blank=True)
walk_out = models.IntegerField(null=True, blank=True) # TODO type of WO: forfeit, injury...
lucky_loser = models.IntegerField(null=True, blank=True)

Loading…
Cancel
Save