diff options
Diffstat (limited to 'python/Dawn')
| -rw-r--r-- | python/Dawn/views.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/python/Dawn/views.py b/python/Dawn/views.py index f61e5308..3a3e694c 100644 --- a/python/Dawn/views.py +++ b/python/Dawn/views.py @@ -115,6 +115,7 @@ def cds_trade_manage(tradeid): cds_form = CDSForm(trade_date = today.date(), effective_date= tomorrow.date(), upfront_settle_date = today.date() + 3 * BDay()) + cds_form.cp_code.choices = cds_form.cp_code.choices + list(cp_choices()) if cds_form.is_submitted(): if cds_form.validate(): cds_form.populate_obj(trade) @@ -189,6 +190,7 @@ def edit_counterparty(cpcode): @app.route('/_ajax', methods=['GET']) def get_bbg_id(): bbg_id = request.args.get('bbg_id') + _, indextype, _, series, tenor = bbg_id.split() indextype = indextype[:2] tenor = tenor[:-1] + 'yr' |
