From d396abca8475e6f7f1b45fcd273890b2e5b3137e Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Thu, 8 Dec 2022 07:20:07 +0000 Subject: [PATCH] Use CRUD helper for position list --- core/templates/partials/position-list.html | 2 +- core/views/__init__.py | 39 ++++--- core/views/positions.py | 114 +++++++++++---------- 3 files changed, 85 insertions(+), 70 deletions(-) diff --git a/core/templates/partials/position-list.html b/core/templates/partials/position-list.html index 677bb00..2922a56 100644 --- a/core/templates/partials/position-list.html +++ b/core/templates/partials/position-list.html @@ -17,7 +17,7 @@ trades actions - {% for item in items %} + {% for item in object_list %}