From 396d838416fa4e41418f507a05a8d34bc4d47eb6 Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Wed, 2 Nov 2022 18:24:56 +0000 Subject: [PATCH] Change positions fields --- core/templates/partials/position-list.html | 8 ++++---- core/views/positions.py | 8 ++++++-- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/core/templates/partials/position-list.html b/core/templates/partials/position-list.html index 27f61a7..0ef8a35 100644 --- a/core/templates/partials/position-list.html +++ b/core/templates/partials/position-list.html @@ -16,9 +16,9 @@ {% if item.unrealized_pl > 0 %}has-background-success-light {% elif item.unrealized_pl < 0 %}has-background-danger-light {% endif %}"> - {{ item.account_id }} + {{ item.account }} {{ item.symbol }} - {{ item.current_price }} + {{ item.price }} {{ item.qty }} {{ item.market_value }} {{ item.unrealized_pl }} @@ -51,7 +51,7 @@ {% if type == 'page' %} - +