Redirect explicitly to the payment page on dcl landing login

This commit is contained in:
M.Ravi 2017-10-12 22:50:54 +02:00
parent 1018792df3
commit 152c930180

View file

@ -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