diff options
author | luxagraf <sng@luxagraf.net> | 2021-07-22 13:58:17 -0400 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2021-07-22 13:58:17 -0400 |
commit | 2163702608184beaeb944a03a32ca409240a3cc5 (patch) | |
tree | 7bdd37de6897a1a2eb067496c46993644a58fa39 /app/trading/models.py | |
parent | 5c37c5fd754e39dc67bbd9172ef2454ebe666120 (diff) |
trad: small improvement to viewing and editing trades
Diffstat (limited to 'app/trading/models.py')
-rw-r--r-- | app/trading/models.py | 2 |
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): |