Add expiry year and month to get_all_cards_list

This commit is contained in:
PCoder 2019-07-09 18:47:54 +05:30
parent 59c45492a9
commit fe44908868

View file

@ -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