From 86d04a35b781cefda075981d00eb453cf43c12bc Mon Sep 17 00:00:00 2001 From: Gytha Ogg Date: Fri, 11 Oct 2024 11:35:01 +0200 Subject: [PATCH] fix(generic): redirect to detail page after merge get_successful_url of MergeWith view got acccidentally removed from MergeWith in commit 9e8fe5c. This is now reinstated. Closes #1282 --- apis_core/generic/views.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apis_core/generic/views.py b/apis_core/generic/views.py index a27f2c961..bf813e8a1 100644 --- a/apis_core/generic/views.py +++ b/apis_core/generic/views.py @@ -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): """