Clear product_id from session

This commit is contained in:
PCoder 2018-10-03 08:18:19 +02:00
parent a4065c7e24
commit 1cdc9ea657

View file

@ -898,7 +898,7 @@ class OrderConfirmationView(DetailView):
for session_var in ['specs', 'template', 'billing_address', for session_var in ['specs', 'template', 'billing_address',
'billing_address_data', 'card_id', 'billing_address_data', 'card_id',
'token', 'customer', 'generic_payment_type', 'token', 'customer', 'generic_payment_type',
'generic_payment_details', 'product_slug']: 'generic_payment_details', 'product_id']:
if session_var in request.session: if session_var in request.session:
del request.session[session_var] del request.session[session_var]