From c6db1450a114b5a93ae09083a6c5334c2d55d9e5 Mon Sep 17 00:00:00 2001 From: modulos Date: Thu, 25 May 2017 12:39:23 +0200 Subject: [PATCH 1/2] Correct vm configuration flow A user now get's redirected to vm list view when pressing 'finish configuration' --- hosting/templates/hosting/order_detail.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hosting/templates/hosting/order_detail.html b/hosting/templates/hosting/order_detail.html index 868680aa..7b63c927 100644 --- a/hosting/templates/hosting/order_detail.html +++ b/hosting/templates/hosting/order_detail.html @@ -61,7 +61,7 @@ {% url 'hosting:payment' as payment_url %} {% if payment_url in request.META.HTTP_REFERER %}
- +
{% endif %} From d3957352194630dc78f6802c626ef14b34967fba Mon Sep 17 00:00:00 2001 From: modulos Date: Thu, 25 May 2017 16:23:31 +0200 Subject: [PATCH 2/2] 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):