bracket-feature
Laurent 9 months ago
parent ee2028d804
commit 7d5ed059b5
  1. 6
      tournaments/views.py

@ -849,8 +849,8 @@ def tournament_import_team_reg(request):
# Delete existing relationships
# tournament.round_set.all().delete()
# tournament.groupstage_set.all().delete()
# tournament.teamregistration_set.all().delete()
tournament.groupstage_set.all().delete()
tournament.teamregistration_set.all().delete()
with zipfile.ZipFile(zip_file) as z:
# First, process rounds
@ -880,7 +880,7 @@ def tournament_import_team_reg(request):
# Then process all other files
serializer_mapping = {
# 'group-stages.json': GroupStageSerializer,
'group-stages.json': GroupStageSerializer,
'team-registrations.json': TeamRegistrationSerializer,
# 'matches.json': MatchSerializer,
# 'player-registrations.json': PlayerRegistrationSerializer,

Loading…
Cancel
Save