@ -54,7 +54,6 @@
<!-- Add Player Form -->
{% if current_players|length < 2 %}
<div>
{% csrf_token %}
{% if user_without_licence and tournament.license_is_required %}
<div class="semibold">
@ -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