summaryrefslogtreecommitdiff
path: root/app/trading/models.py
diff options
context:
space:
mode:
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):