Change success_url in hosting.SignupView from ssh_keys to dashboard

This commit is contained in:
PCoder 2017-12-27 08:32:55 +01:00
parent 72baa3635b
commit 87cdb08f3c

View file

@ -221,7 +221,7 @@ class SignupView(CreateView):
template_name = 'hosting/signup.html' template_name = 'hosting/signup.html'
form_class = HostingUserSignupForm form_class = HostingUserSignupForm
model = CustomUser model = CustomUser
success_url = reverse_lazy('hosting:ssh_keys') success_url = reverse_lazy('hosting:dashboard')
def get_success_url(self): def get_success_url(self):
next_url = self.request.session.get( next_url = self.request.session.get(