From d771469e7b37c9de9ed93e156bc4615180c8d413 Mon Sep 17 00:00:00 2001 From: luxagraf Date: Thu, 15 Jul 2021 15:24:32 -0400 Subject: trad: added notes to update form --- app/trading/views.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/trading/views.py b/app/trading/views.py index a2bc5eb..1b07852 100644 --- a/app/trading/views.py +++ b/app/trading/views.py @@ -22,11 +22,10 @@ class TradeModelFormView(CreateView): class LuxTradeDetailView(UpdateView): model = LuxTrade - fields = ['symbol', 'status', 'entry_price', 'stop_price', 'target_price', 'shares', 'close_price'] + fields = ['symbol', 'status', 'entry_price', 'stop_price', 'target_price', 'shares', 'close_price', 'notes'] template_name = 'trading/update_form.html' success_url = '/trading/' - class LuxTradeListView(PaginatedListView): model = LuxTrade template_name = 'trading/list.html' -- cgit v1.2.3