aboutsummaryrefslogtreecommitdiffstats
path: root/python/Dawn
diff options
context:
space:
mode:
Diffstat (limited to 'python/Dawn')
-rw-r--r--python/Dawn/models.py2
-rw-r--r--python/Dawn/views.py3
2 files changed, 1 insertions, 4 deletions
diff --git a/python/Dawn/models.py b/python/Dawn/models.py
index 28d57990..6e5ad0ad 100644
--- a/python/Dawn/models.py
+++ b/python/Dawn/models.py
@@ -320,7 +320,7 @@ class SpotDeal(db.Model):
info={'choices': [('IBKRNY', 'Interactive Brokers')],
'label': 'counterparty'}, nullable=False)
trade_date = db.Column(db.Date, nullable=False)
- settlement_date = db.Column(db.Date, nullable=False)
+ settle_date = db.Column(db.Date, nullable=False)
spot_rate = db.Column(db.Float, nullable=False)
buy_currency = db.Column(CCY, nullable=False)
buy_amount = db.Column(db.Float, nullable=False)
diff --git a/python/Dawn/views.py b/python/Dawn/views.py
index 3cecf2b5..7c84db6d 100644
--- a/python/Dawn/views.py
+++ b/python/Dawn/views.py
@@ -191,9 +191,6 @@ def get_form(trade, kind):
upfront_settle_date=today.date() + 3 * bus_day)
if kind == 'cds':
form.account_code.choices = fcm_accounts()
- elif kind == 'spot':
- form = Form(trade_date=today.date(),
- settlement_date=today.date() + 2 * bus_day)
else:
form = Form(trade_date=today.date(),
settle_date=today.date() + 2 * bus_day)