mirror of https://github.com/snachodog/mybuddy.git
Float active timers to top.
This commit is contained in:
parent
f08ec94e3c
commit
f15894fac2
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue