Save Python some work sorting tasks
This commit is contained in:
1 parent
9b28ca15bd
commit
895bdc8617
1 file changed
+1
-1
@@ -859,7 +859,7 @@ class TasksView(ListView):
|
||||
params_prefix=f'[["{self.filter_source.pk}"'
|
||||
qs = qs.filter(task_params__istartswith=params_prefix)
|
||||
return qs.order_by(
|
||||
'priority',
|
||||
'-priority',
|
||||
'end_at',
|
||||
)
|
||||
|
||||
|
||||
Reference in new issue
Block a user