From 01c0f28b16aeecc7709bfc6418b1077d3d0a1d79 Mon Sep 17 00:00:00 2001 From: Danhia Date: Sun, 13 Feb 2022 13:13:54 +0100 Subject: [PATCH] hotfix for 500 when joining team --- src/events/views/teams.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/events/views/teams.py b/src/events/views/teams.py index b7268a8..b2c1af8 100644 --- a/src/events/views/teams.py +++ b/src/events/views/teams.py @@ -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})