From c61891cff42e61b73b711937a3a44e540377afcd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Kucharczyk?= Date: Mon, 6 Feb 2023 17:23:44 +0100 Subject: [PATCH] Fix redirect to index --- games/views.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/games/views.py b/games/views.py index 8e2cbed..de77085 100644 --- a/games/views.py +++ b/games/views.py @@ -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"