Merge pull request 'change redirect after tournament createion' (#42) from feature/redirect-after-tournament-creation into master
Reviewed-on: #42
This commit is contained in:
commit
148b0e2ed6
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user