Clean session variables using real_request
This commit is contained in:
		
					parent
					
						
							
								a99924b94c
							
						
					
				
			
			
				commit
				
					
						a9778076d6
					
				
			
		
					 1 changed files with 1 additions and 3 deletions
				
			
		| 
						 | 
					@ -1043,7 +1043,6 @@ class OrderConfirmationView(DetailView, FormView):
 | 
				
			||||||
                  ' We will send you a confirmation email as soon as'
 | 
					                  ' We will send you a confirmation email as soon as'
 | 
				
			||||||
                  ' it is ready.'))
 | 
					                  ' it is ready.'))
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        clear_all_session_vars(request)
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
        return JsonResponse(response)
 | 
					        return JsonResponse(response)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1064,7 +1063,7 @@ def do_provisioning(request, user, stripe_api_cus_id, card_details_response,
 | 
				
			||||||
            'generic_payment_details': {
 | 
					            'generic_payment_details': {
 | 
				
			||||||
                'amount': 100,
 | 
					                'amount': 100,
 | 
				
			||||||
                'recurring':
 | 
					                'recurring':
 | 
				
			||||||
            }
 | 
					            },
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    :param user: a dict
 | 
					    :param user: a dict
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
| 
						 | 
					@ -1273,7 +1272,6 @@ def do_provisioning(request, user, stripe_api_cus_id, card_details_response,
 | 
				
			||||||
                  'info@ungleich.ch for any question that you may have.')
 | 
					                  'info@ungleich.ch for any question that you may have.')
 | 
				
			||||||
            )
 | 
					            )
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        clear_all_session_vars(request)
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
        return JsonResponse(response)
 | 
					        return JsonResponse(response)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue