Skip to content

Commit

Permalink
chore(entities): redirect to project detail page on update and creati…
Browse files Browse the repository at this point in the history
…on (#215)
  • Loading branch information
sbanoeon authored Oct 30, 2024
1 parent b5e7e1e commit 729f273
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Entirety/projects/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 729f273

Please sign in to comment.