diff options
-rw-r--r-- | app/trading/admin.py | 1 | ||||
-rw-r--r-- | app/trading/templates/trading/list.html | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/app/trading/admin.py b/app/trading/admin.py index 4848ed1..1fbc685 100644 --- a/app/trading/admin.py +++ b/app/trading/admin.py @@ -27,6 +27,7 @@ class OptionsTradeAdmin(admin.ModelAdmin): @admin.register(LuxTrade) class LuxTradeAdmin(admin.ModelAdmin): list_display = ('symbol', 'status', 'open_date', 'entry_price', 'stop_price', 'close_price', 'shares', 'amount_invested') + list_filter = ['status', 'open_date'] class Media: js = ('image-loader.js', 'next-prev-links.js') css = { diff --git a/app/trading/templates/trading/list.html b/app/trading/templates/trading/list.html index fd754b6..2e50fe1 100644 --- a/app/trading/templates/trading/list.html +++ b/app/trading/templates/trading/list.html @@ -19,8 +19,8 @@ </thead> {% for object in open_trades %} <tr> + <td><a href="">{{object.symbol}}</a></td> <td><a href="{{object.get_absolute_url}}">{{object.date|date:"m-d-Y"}}</a></td> - <td>{{object.symbol}}</td> <td>${{object.entry_price}}</td> <td>${{object.stop_price}}</td> <td>${{object.target_price}}</td> |