Skip SSH key page for generic products page
This commit is contained in:
		
					parent
					
						
							
								2c74eae3f9
							
						
					
				
			
			
				commit
				
					
						207c3a6c6c
					
				
			
		
					 1 changed files with 6 additions and 0 deletions
				
			
		| 
						 | 
					@ -522,6 +522,12 @@ class PaymentOrderView(FormView):
 | 
				
			||||||
                request.session['customer'] = customer.stripe_id
 | 
					                request.session['customer'] = customer.stripe_id
 | 
				
			||||||
            else:
 | 
					            else:
 | 
				
			||||||
                request.session['customer'] = customer
 | 
					                request.session['customer'] = customer
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					            # For generic payment we take the user directly to confirmation
 | 
				
			||||||
 | 
					            if ('generic_payment_type' in request.session and
 | 
				
			||||||
 | 
					                    self.request.session['generic_payment_type'] == 'generic'):
 | 
				
			||||||
 | 
					                return HttpResponseRedirect(
 | 
				
			||||||
 | 
					                    reverse('datacenterlight:order_confirmation'))
 | 
				
			||||||
            return HttpResponseRedirect(
 | 
					            return HttpResponseRedirect(
 | 
				
			||||||
                reverse('datacenterlight:add_ssh_key'))
 | 
					                reverse('datacenterlight:add_ssh_key'))
 | 
				
			||||||
        else:
 | 
					        else:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue