Merge pull request #795 from tcely/patch-5
Be more user-friendly when sorting tasks
This commit is contained in:
@@ -782,8 +782,8 @@ class TasksView(ListView):
|
||||
prefix = '-' if 'ASC' != order else ''
|
||||
_priority = f'{prefix}priority'
|
||||
return qs.order_by(
|
||||
'run_at',
|
||||
_priority,
|
||||
'run_at'
|
||||
)
|
||||
|
||||
def get_context_data(self, *args, **kwargs):
|
||||
|
||||
Reference in New Issue
Block a user