Skip to content

Commit 9f4ac9c

Browse files
authored
sorting subtasks by create_dt in hierarchy_info
1 parent d08bd39 commit 9f4ac9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

huey_monitor/admin.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def column_name(self, obj):
7878
column_name.short_description = _('Task name')
7979

8080
def task_hierarchy_info(self, obj):
81-
qs = TaskModel.objects.filter(parent_task_id=obj.pk)
81+
qs = TaskModel.objects.filter(parent_task_id=obj.pk).order_by('create_dt')
8282
context = {
8383
'sub_tasks': qs
8484
}

0 commit comments

Comments
 (0)