From 152c9301806ac3430545716d108fb160753e6426 Mon Sep 17 00:00:00 2001 From: "M.Ravi" Date: Thu, 12 Oct 2017 22:50:54 +0200 Subject: [PATCH] Redirect explicitly to the payment page on dcl landing login --- datacenterlight/views.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/datacenterlight/views.py b/datacenterlight/views.py index eec9fcf6..bd1a7f51 100644 --- a/datacenterlight/views.py +++ b/datacenterlight/views.py @@ -404,7 +404,9 @@ class PaymentOrderView(FormView): auth_user = authenticate(email=email, password=password) if auth_user: login(self.request, auth_user) - return HttpResponseRedirect('') + return HttpResponseRedirect( + reverse('datacenterlight:payment') + ) else: context = self.get_context_data() context['login_form'] = login_form