From d3957352194630dc78f6802c626ef14b34967fba Mon Sep 17 00:00:00 2001 From: modulos Date: Thu, 25 May 2017 16:23:31 +0200 Subject: [PATCH] Redirect new user to key generation view --- hosting/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hosting/views.py b/hosting/views.py index af86b825..3f309060 100644 --- a/hosting/views.py +++ b/hosting/views.py @@ -188,10 +188,11 @@ class SignupView(CreateView): template_name = 'hosting/signup.html' form_class = HostingUserSignupForm model = CustomUser + success_url = reverse_lazy('hosting:key_pair') def get_success_url(self): next_url = self.request.session.get( - 'next', reverse_lazy('hosting:virtual_machines')) + 'next', self.success_url) return next_url def form_valid(self, form):