Format cc month to 2 decimal places
This commit is contained in:
parent
fe44908868
commit
903ef48c75
3 changed files with 4 additions and 4 deletions
|
|
@ -598,7 +598,7 @@ class UserCardDetail(AssignPermissionsMixin, models.Model):
|
|||
cards_list.append({
|
||||
'last4': card.last4, 'brand': card.brand, 'id': card.id,
|
||||
'exp_year': card.exp_year,
|
||||
'exp_month': card.exp_month,
|
||||
'exp_month': '{:02d}'.format(card.exp_month),
|
||||
'preferred': card.preferred
|
||||
})
|
||||
return cards_list
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue