diff options
Diffstat (limited to 'app/trading/admin.py')
-rw-r--r-- | app/trading/admin.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/app/trading/admin.py b/app/trading/admin.py index 1fbc685..2e4e05c 100644 --- a/app/trading/admin.py +++ b/app/trading/admin.py @@ -1,6 +1,6 @@ from django.contrib import admin from django.db import models -from .models import TradeJrnl, OptionsTrade, LuxTrade +from .models import TradeJrnl, LuxOptionsTrade, LuxTrade from utils.widgets import AdminImageWidget, LGEntryForm @@ -14,10 +14,10 @@ class TradingJrnlAdmin(admin.ModelAdmin): } -@admin.register(OptionsTrade) -class OptionsTradeAdmin(admin.ModelAdmin): - list_display = ('symbol', 'date', 'buy_sell', 'open_close', 'quantity') - list_filter = ['buy_sell'] +@admin.register(LuxOptionsTrade) +class LuxOptionsTradeAdmin(admin.ModelAdmin): + list_display = ('symbol', 'date', 'call_put') + list_filter = ['call_put'] class Media: js = ('image-loader.js', 'next-prev-links.js') css = { |