Skip to content
This repository
Browse code

Adding status to account as_dict

There was no way to determine if a giftcard was usable when retrieving details from the api.
  • Loading branch information...
commit 010cf3f28abbf7ea3b4283444f185928b88f2b77 1 parent a262d16
Jonathan Moss a-musing-moose authored

Showing 1 changed file with 1 addition and 0 deletions. Show diff stats Hide diff stats

  1. +1 0  accounts/abstract_models.py
1  accounts/abstract_models.py
@@ -229,6 +229,7 @@ def as_dict(self):
229 229 'code': self.code,
230 230 'start_date': '',
231 231 'end_date': '',
  232 + 'status': self.status,
232 233 'balance': "%.2f" % self.balance,
233 234 'redemptions_url': reverse('account-redemptions',
234 235 kwargs={'code': self.code}),

0 comments on commit 010cf3f

Please sign in to comment.
Something went wrong with that request. Please try again.