Skip to content

Commit

Permalink
fix(generic): redirect to detail page after merge
Browse files Browse the repository at this point in the history
get_successful_url of MergeWith view got acccidentally removed from
MergeWith in commit 9e8fe5c. This is now reinstated.

Closes #1282
  • Loading branch information
gythaogg authored and b1rger committed Oct 14, 2024
1 parent 8b0d40e commit 86d04a3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apis_core/generic/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,9 @@ def form_valid(self, form):
messages.info(self.request, f"Merged values of {self.other} into {self.object}")
return super().form_valid(form)

def get_success_url(self):
return self.object.get_absolute_url()


class Enrich(GenericModelMixin, PermissionRequiredMixin, FormView):
"""
Expand Down

0 comments on commit 86d04a3

Please sign in to comment.