From bff37d624630a97d76d8eee5c627d2e05d03117e Mon Sep 17 00:00:00 2001 From: "M.Ravi" Date: Mon, 16 Oct 2017 16:20:03 +0200 Subject: [PATCH] Add card id param to card details --- hosting/views.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hosting/views.py b/hosting/views.py index 01bbe369..5fcc44ba 100644 --- a/hosting/views.py +++ b/hosting/views.py @@ -555,7 +555,9 @@ class SettingsView(LoginRequiredMixin, FormView): ) cards_list = [] for card in user_card_details: - cards_list.append({'last4': card.last4, 'brand': card.brand}) + cards_list.append({ + 'last4': card.last4, 'brand': card.brand, 'id': card.id + }) context.update({ 'cards_list': cards_list, 'stripe_key': settings.STRIPE_API_PUBLIC_KEY