Fix return type of get_success_url

This commit is contained in:
Kumi 2021-11-13 15:06:04 +01:00
parent 0229cd598b
commit e8f8e2372d

View file

@ -29,7 +29,7 @@ class ClientRegistrationView(LoginRequiredMixin, RedirectToNextMixin, CreateView
def get_success_url(self): def get_success_url(self):
messages.success(self.request, "Profil erfolgreich angelegt!") 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): def get_initial(self):
try: try: