diff options
-rw-r--r-- | app/trading/templates/trading/list.html | 2 | ||||
-rw-r--r-- | app/trading/views.py | 2 |
2 files changed, 2 insertions, 2 deletions
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 @@ </tr> </thead> {% for object in options_trades %} - <tr {%if object.is_wanderer %}class="wanderer-trade"{% endif %}> + <tr class="{%if object.is_wanderer %}wanderer-trade {% endif %}{%if object.status == 2%}watching{% endif %}"> <td><a href="https://www.tradingview.com/chart/?symbol={{object.symbol}}" target="_blank">{{object.symbol}}</a></td> <td><a href="{{object.get_absolute_url}}">{{object.date|date:"m-d-Y"}}</a></td> <td> 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 |