diff options
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): |