From 2163702608184beaeb944a03a32ca409240a3cc5 Mon Sep 17 00:00:00 2001 From: luxagraf Date: Thu, 22 Jul 2021 13:58:17 -0400 Subject: trad: small improvement to viewing and editing trades --- app/trading/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/trading/models.py') 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): -- cgit v1.2.3-70-g09d2