diff options
Diffstat (limited to 'python/Dawn')
| -rw-r--r-- | python/Dawn/views.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/python/Dawn/views.py b/python/Dawn/views.py index 7963827d..8ea21997 100644 --- a/python/Dawn/views.py +++ b/python/Dawn/views.py @@ -45,14 +45,14 @@ def trade_manage(tradeid): trade = BondDeal.query.get(tradeid) if tradeid else BondDeal() if tradeid: bond_form = BondForm(obj = trade) - #change default to UPDATE - bond_form.action.default='UPDATE' old_ticket_name = trade.ticket else: bond_form = BondForm(trade_date = pd.datetime.today().date(), settle_date = pd.datetime.today().date() + 3 * BDay()) - bond_form.buysell.choices = [(None, '')] + bond_form.buysell.choices - bond_form.assetclass = [(None, '')] + bond_form.asset_class.choices + #add extra empty fields + bond_form.folder.choices = [(None, '')] + bond_form.folder.choices + bond_form.buysell.choices = [(None, '')] + bond_form.buysell + bond_form.asset_class.choices = [(None, '')] + bond_form.asset_class bond_form.cp_code.choices = bond_form.cp_code.choices + list(cp_choices()) if bond_form.is_submitted(): if bond_form.validate(): |
