Be more user-friendly when sorting tasks

The time first, then the priority, if the tasks are at the same time.
This commit is contained in:
tcely 2025-02-28 16:51:53 -05:00 committed by GitHub
parent e39fc86952
commit 0703032fcf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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):