From e8f8e2372d69805a63e1cdda3d2464c6ea25d9d6 Mon Sep 17 00:00:00 2001 From: Kumi Date: Sat, 13 Nov 2021 15:06:04 +0100 Subject: [PATCH] Fix return type of get_success_url --- clients/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clients/views.py b/clients/views.py index 5b74271..496ee58 100644 --- a/clients/views.py +++ b/clients/views.py @@ -29,7 +29,7 @@ class ClientRegistrationView(LoginRequiredMixin, RedirectToNextMixin, CreateView def get_success_url(self): messages.success(self.request, "Profil erfolgreich angelegt!") - return redirect(self.get_redirect_url()) if self.get_redirect_url() else reverse_lazy("clients:profile") + return self.get_redirect_url() if self.get_redirect_url() else reverse_lazy("clients:profile") def get_initial(self): try: