summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2021-07-14 10:13:20 -0400
committerluxagraf <sng@luxagraf.net>2021-07-14 10:13:20 -0400
commitae4fd26611dd4d7e59f9e2b3c80cbfe0f820d9a2 (patch)
tree881c2a87878b14a2f5a50dd1de25f0b0a06ca752 /app
parent335896b6f04047e369b079e45a2c949e8320b469 (diff)
trad: added an admin for editing trades
Diffstat (limited to 'app')
-rw-r--r--app/trading/admin.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/app/trading/admin.py b/app/trading/admin.py
index 8b1435c..4848ed1 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
+from .models import TradeJrnl, OptionsTrade, LuxTrade
from utils.widgets import AdminImageWidget, LGEntryForm
@@ -24,3 +24,12 @@ class OptionsTradeAdmin(admin.ModelAdmin):
"all": ("my_styles.css",)
}
+@admin.register(LuxTrade)
+class LuxTradeAdmin(admin.ModelAdmin):
+ list_display = ('symbol', 'status', 'open_date', 'entry_price', 'stop_price', 'close_price', 'shares', 'amount_invested')
+ class Media:
+ js = ('image-loader.js', 'next-prev-links.js')
+ css = {
+ "all": ("my_styles.css",)
+ }
+