change currencies integer constants to ISO code strings

This commit is contained in:
Romain Bignon 2014-02-16 19:48:17 +01:00
commit 6099560b8c
11 changed files with 24 additions and 39 deletions

View file

@ -49,8 +49,8 @@ class Recipient(CapBaseObject, Currency):
Recipient of a transfer.
"""
label = StringField('Name')
currency = IntField('Currency', default=Currency.CUR_UNKNOWN)
label = StringField('Name')
currency = StringField('Currency', default=None)
def __init__(self):
CapBaseObject.__init__(self, 0)