Redirect explicitly to the payment page on dcl landing login
This commit is contained in:
		
					parent
					
						
							
								1018792df3
							
						
					
				
			
			
				commit
				
					
						152c930180
					
				
			
		
					 1 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
					@ -404,7 +404,9 @@ class PaymentOrderView(FormView):
 | 
				
			||||||
                auth_user = authenticate(email=email, password=password)
 | 
					                auth_user = authenticate(email=email, password=password)
 | 
				
			||||||
                if auth_user:
 | 
					                if auth_user:
 | 
				
			||||||
                    login(self.request, auth_user)
 | 
					                    login(self.request, auth_user)
 | 
				
			||||||
                    return HttpResponseRedirect('')
 | 
					                    return HttpResponseRedirect(
 | 
				
			||||||
 | 
					                        reverse('datacenterlight:payment')
 | 
				
			||||||
 | 
					                    )
 | 
				
			||||||
            else:
 | 
					            else:
 | 
				
			||||||
                context = self.get_context_data()
 | 
					                context = self.get_context_data()
 | 
				
			||||||
                context['login_form'] = login_form
 | 
					                context['login_form'] = login_form
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue