aboutsummaryrefslogtreecommitdiffstats
path: root/python/Dawn
diff options
context:
space:
mode:
Diffstat (limited to 'python/Dawn')
-rw-r--r--python/Dawn/models.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/python/Dawn/models.py b/python/Dawn/models.py
index b9d63dd0..239ea885 100644
--- a/python/Dawn/models.py
+++ b/python/Dawn/models.py
@@ -56,12 +56,12 @@ class BondDeal(db.Model):
trade_date = db.Column(db.Date, nullable = False)
settle_date = db.Column(db.Date, nullable = False)
cusip = db.Column(db.String(9), info={'validators': Length(9,9),
- 'filters': (lambda x: x or None,),
+ 'filters': [lambda x: x or None,],
'trim': True})
isin = db.Column(db.String(12), info={'validators': Length(12, 12),
- 'filters': (lambda x: x or None,),
+ 'filters': [lambda x: x or None,],
'trim': True})
- identifier = db.Column(db.String(12), info={'filters': (lambda x: x or None,),
+ identifier = db.Column(db.String(12), info={'filters': [lambda x: x or None,],
'trim': True})
description = db.Column(db.String(32), nullable = False, info={'trim': True})
buysell = db.Column(db.Boolean, nullable = False, info={'choices':[(0, 'sell'), (1, 'buy')],