From 729f27382b4347b04ddd60475b384693314a6dbb Mon Sep 17 00:00:00 2001 From: Saira Bano <79838286+sbanoeon@users.noreply.github.com> Date: Wed, 30 Oct 2024 15:17:22 +0100 Subject: [PATCH] chore(entities): redirect to project detail page on update and creation (#215) --- app/Entirety/projects/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Entirety/projects/views.py b/app/Entirety/projects/views.py index 0299a419..1d5f2f1c 100644 --- a/app/Entirety/projects/views.py +++ b/app/Entirety/projects/views.py @@ -127,7 +127,7 @@ def get_success_url(self): + " has updated the project " + self.object.name ) - return reverse("projects:index") + return reverse("projects:detail", kwargs={"pk": self.object.pk}) def get_form_kwargs(self): kwargs = super(Update, self).get_form_kwargs() @@ -155,7 +155,7 @@ def get_success_url(self): + " has created the project " + self.object.name ) - return reverse("projects:index") + return reverse("projects:detail", kwargs={"pk": self.object.pk}) def get_form_kwargs(self): kwargs = super(Create, self).get_form_kwargs()