Fix return type of get_success_url
This commit is contained in:
parent
0229cd598b
commit
e8f8e2372d
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue