From 55c37bb2d1b46d87a75f9281cf6ba1b4431a1b42 Mon Sep 17 00:00:00 2001 From: Hubert Jankowski Date: Sun, 5 Jun 2022 11:29:01 +0200 Subject: [PATCH] change redirect after tournament createion --- trials/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trials/views.py b/trials/views.py index 6ca956a..4d1546f 100644 --- a/trials/views.py +++ b/trials/views.py @@ -99,7 +99,7 @@ def CreateTournamentView(request, **kwargs): for k, v in dictt.items(): question_ids.append(k) Tournament.objects.create(name=name, questions=question_ids, passing_score=passing_score) - return render(request, 'home.html') + return redirect('home') context = {} context['questions'] = Question.objects.all() return render(request, 'createTournament.html', context)