Fix redirect to index
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Lukáš Kucharczyk 2023-02-06 17:23:44 +01:00
parent 04a4f2e0be
commit 8296ebcf31
Signed by: lukas
SSH Key Fingerprint: SHA256:vMuSwvwAvcT6htVAioMP7rzzwMQNi3roESyhv+nAxeg
1 changed files with 3 additions and 3 deletions

View File

@ -116,7 +116,7 @@ def add_purchase(request):
form = PurchaseForm(request.POST or None, initial=initial)
if form.is_valid():
form.save()
return redirect("index")
return redirect("list_sessions")
context["form"] = form
context["title"] = "Add New Purchase"
@ -128,7 +128,7 @@ def add_game(request):
form = GameForm(request.POST or None)
if form.is_valid():
form.save()
return redirect("index")
return redirect("list_sessions")
context["form"] = form
context["title"] = "Add New Game"
@ -140,7 +140,7 @@ def add_platform(request):
form = PlatformForm(request.POST or None)
if form.is_valid():
form.save()
return redirect("index")
return redirect("list_sessions")
context["form"] = form
context["title"] = "Add New Platform"