From e0148de2b8a6cbf8fef2b3e4c66249e58be619b7 Mon Sep 17 00:00:00 2001 From: luxagraf Date: Thu, 22 Jul 2021 09:40:19 -0400 Subject: trad: Added watched options to main list --- app/trading/templates/trading/list.html | 2 +- app/trading/views.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'app/trading') diff --git a/app/trading/templates/trading/list.html b/app/trading/templates/trading/list.html index 539ba49..5caa993 100644 --- a/app/trading/templates/trading/list.html +++ b/app/trading/templates/trading/list.html @@ -115,7 +115,7 @@ {% for object in options_trades %} - + {{object.symbol}} {{object.date|date:"m-d-Y"}} diff --git a/app/trading/views.py b/app/trading/views.py index ae4098c..d9d8f45 100644 --- a/app/trading/views.py +++ b/app/trading/views.py @@ -14,7 +14,7 @@ class LuxTradeListView(PaginatedListView): context = super(LuxTradeListView, self).get_context_data(**kwargs) context['open_trades'] = LuxTrade.objects.filter(status=0) context['watch_trades'] = LuxTrade.objects.filter(status=2) - context['options_trades'] = LuxOptionsTrade.objects.filter(status=0) + context['options_trades'] = LuxOptionsTrade.objects.filter(status__in=[0,2]) context['monthly_pl'] = LuxTrade.stats.get_month_pl() context['month'] = datetime.now().strftime('%h') return context -- cgit v1.2.3-70-g09d2