From fe44908868ae22336e803633751f4ec6bcc773a5 Mon Sep 17 00:00:00 2001 From: PCoder Date: Tue, 9 Jul 2019 18:47:54 +0530 Subject: [PATCH] Add expiry year and month to get_all_cards_list --- hosting/models.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hosting/models.py b/hosting/models.py index 311ee953..e6e29cbe 100644 --- a/hosting/models.py +++ b/hosting/models.py @@ -597,6 +597,8 @@ class UserCardDetail(AssignPermissionsMixin, models.Model): for card in user_card_details: cards_list.append({ 'last4': card.last4, 'brand': card.brand, 'id': card.id, + 'exp_year': card.exp_year, + 'exp_month': card.exp_month, 'preferred': card.preferred }) return cards_list