From e7139125c7374a9732fc057e2b7f88447cf04d8d Mon Sep 17 00:00:00 2001 From: luxagraf Date: Tue, 20 Jul 2021 22:00:33 -0400 Subject: trad: added options admin --- app/trading/admin.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'app/trading') 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 = { -- cgit v1.2.3-70-g09d2