From 44ebb7191604383e4fbfc162d8ed595a06ad0fe9 Mon Sep 17 00:00:00 2001 From: PCoder Date: Sat, 2 Jan 2021 09:02:37 +0530 Subject: [PATCH] Also clear id_payment_method from session --- datacenterlight/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/datacenterlight/utils.py b/datacenterlight/utils.py index 8a087e3e..6a0e45ca 100644 --- a/datacenterlight/utils.py +++ b/datacenterlight/utils.py @@ -111,7 +111,8 @@ def clear_all_session_vars(request): 'token', 'customer', 'generic_payment_type', 'generic_payment_details', 'product_id', 'order_confirm_url', 'new_user_hosting_key_id', - 'vat_validation_status', 'billing_address_id']: + 'vat_validation_status', 'billing_address_id', + 'id_payment_method']: if session_var in request.session: del request.session[session_var]