From f15894fac281c42f99651c8b907e0122bc4ebae7 Mon Sep 17 00:00:00 2001 From: Christopher Charbonneau Wells Date: Fri, 18 Aug 2017 01:56:23 -0400 Subject: [PATCH] Float active timers to top. --- core/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/models.py b/core/models.py index 5f6db84f..a6fd2972 100644 --- a/core/models.py +++ b/core/models.py @@ -121,7 +121,7 @@ class Timer(models.Model): class Meta: default_permissions = ('view', 'add', 'change', 'delete') - ordering = ['active', '-start'] + ordering = ['-active', '-start', '-end'] def __str__(self): return self.name or 'Timer #{}'.format(self.id)