From aea047293e6ccf04eeb0756d28ec062fce927dc5 Mon Sep 17 00:00:00 2001 From: Raz Date: Thu, 24 Apr 2025 09:55:25 +0200 Subject: [PATCH] rollback xls-to-csv --- tournaments/views.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tournaments/views.py b/tournaments/views.py index 7505abf..fd7759b 100644 --- a/tournaments/views.py +++ b/tournaments/views.py @@ -66,6 +66,7 @@ from .forms import CustomPasswordChangeForm from .services.email_service import TournamentEmailService from .services.tournament_registration import RegistrationCartManager from .services.payment_service import PaymentService +from django.views.decorators.csrf import csrf_exempt def index(request): now = timezone.now() @@ -1520,6 +1521,7 @@ def confirm_call(request, tournament_id): return redirect('tournament-info', tournament_id=tournament_id) +@csrf_exempt def xls_to_csv(request): # Check if the request has a file if 'file' in request.FILES: