summaryrefslogtreecommitdiff
path: root/app/trading/models.py
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2021-07-22 13:58:17 -0400
committerluxagraf <sng@luxagraf.net>2021-07-22 13:58:17 -0400
commit2163702608184beaeb944a03a32ca409240a3cc5 (patch)
tree7bdd37de6897a1a2eb067496c46993644a58fa39 /app/trading/models.py
parent5c37c5fd754e39dc67bbd9172ef2454ebe666120 (diff)
trad: small improvement to viewing and editing trades
Diffstat (limited to 'app/trading/models.py')
-rw-r--r--app/trading/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/trading/models.py b/app/trading/models.py
index 40762db..63febc2 100644
--- a/app/trading/models.py
+++ b/app/trading/models.py
@@ -129,7 +129,7 @@ class LuxTrade(models.Model):
pl = models.FloatField(null=True)
class Meta:
- ordering = ('-open_date',)
+ ordering = ('status', '-open_date',)
get_latest_by = 'open_date'
def __str__(self):