hotfix for 500 when joining team

This commit is contained in:
Danhia 2022-02-13 13:13:54 +01:00
parent b36c38fd60
commit 1fb9f410ac
1 changed files with 1 additions and 0 deletions

View File

@ -46,6 +46,7 @@ def join_team(request, event_slug):
player = EventPlayer.objects.get(user=request.user, event=ev)
player.team = team
player.save()
return redirect('events:event_info', event_slug=event_slug)
else:
return render(request, 'events/join_team.html', {'event' : ev, 'logged': True, 'wrongpwd': False, 'registered' : True, 'notexist' : False})