From af51ea6f0ce66feeccb852e83066d3c96a0dd8be Mon Sep 17 00:00:00 2001 From: Skrattoune <56255427+Skrattoune@users.noreply.github.com> Date: Mon, 21 Mar 2022 15:56:54 +0100 Subject: [PATCH] ordering Sub-tasks chronologically in admin When there are a number of sub tasks, they are currently displayed in a way that prevent to make sense of any kind of logic Ordering them chronologically helps to identify problems in case something does not work as planned --- huey_monitor/models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/huey_monitor/models.py b/huey_monitor/models.py index c86d886..6e7fdd1 100644 --- a/huey_monitor/models.py +++ b/huey_monitor/models.py @@ -197,6 +197,7 @@ def __str__(self): class Meta: verbose_name = _('Task') verbose_name_plural = _('Tasks') + ordering = ['-create_dt'] class SignalInfoModel(models.Model):