Redirect users to orders after generic payment is successful
This commit is contained in:
		
					parent
					
						
							
								ff993e32db
							
						
					
				
			
			
				commit
				
					
						d99271f71d
					
				
			
		
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -826,7 +826,7 @@ class OrderConfirmationView(DetailView):
 | 
				
			||||||
            response = {
 | 
					            response = {
 | 
				
			||||||
                'status': True,
 | 
					                'status': True,
 | 
				
			||||||
                'redirect': (
 | 
					                'redirect': (
 | 
				
			||||||
                    reverse('hosting:virtual_machines')
 | 
					                    reverse('hosting:orders')
 | 
				
			||||||
                    if request.user.is_authenticated()
 | 
					                    if request.user.is_authenticated()
 | 
				
			||||||
                    else reverse('datacenterlight:index')
 | 
					                    else reverse('datacenterlight:index')
 | 
				
			||||||
                ),
 | 
					                ),
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue