diff --git a/tournaments/templates/register_tournament.html b/tournaments/templates/register_tournament.html
index d77b197..fd723ab 100644
--- a/tournaments/templates/register_tournament.html
+++ b/tournaments/templates/register_tournament.html
@@ -54,7 +54,6 @@
{% if current_players|length < 2 %}
- {% csrf_token %}
{% if user_without_licence and tournament.license_is_required %}
diff --git a/tournaments/views.py b/tournaments/views.py
index 56dac3d..c64c6fb 100644
--- a/tournaments/views.py
+++ b/tournaments/views.py
@@ -593,6 +593,9 @@ def profile(request):
'user_name': user.username
})
+from django.views.decorators.csrf import csrf_protect
+
+@csrf_protect
def register_tournament(request, tournament_id):
tournament = get_object_or_404(Tournament, id=tournament_id)
registration_successful = False # Flag for registration status