rollback xls-to-csv

sync_v2
Raz 7 months ago
parent 57857ac552
commit aea047293e
  1. 2
      tournaments/views.py

@ -66,6 +66,7 @@ from .forms import CustomPasswordChangeForm
from .services.email_service import TournamentEmailService from .services.email_service import TournamentEmailService
from .services.tournament_registration import RegistrationCartManager from .services.tournament_registration import RegistrationCartManager
from .services.payment_service import PaymentService from .services.payment_service import PaymentService
from django.views.decorators.csrf import csrf_exempt
def index(request): def index(request):
now = timezone.now() now = timezone.now()
@ -1520,6 +1521,7 @@ def confirm_call(request, tournament_id):
return redirect('tournament-info', tournament_id=tournament_id) return redirect('tournament-info', tournament_id=tournament_id)
@csrf_exempt
def xls_to_csv(request): def xls_to_csv(request):
# Check if the request has a file # Check if the request has a file
if 'file' in request.FILES: if 'file' in request.FILES:

Loading…
Cancel
Save