diff --git a/netbox/netbox/models/features.py b/netbox/netbox/models/features.py index 1c39d5b08..920c8e0c1 100644 --- a/netbox/netbox/models/features.py +++ b/netbox/netbox/models/features.py @@ -467,7 +467,7 @@ class JobsMixin(models.Model): """ Return a list of the most recent jobs for this instance. """ - return self.jobs.filter(status__in=JobStatusChoices.TERMINAL_STATE_CHOICES).order_by('-created').defer('data') + return self.jobs.filter(status__in=JobStatusChoices.TERMINAL_STATE_CHOICES).order_by('-started').defer('data') class JournalingMixin(models.Model): diff --git a/netbox/templates/extras/inc/script_list_content.html b/netbox/templates/extras/inc/script_list_content.html index 783d6eac1..ef4764b9c 100644 --- a/netbox/templates/extras/inc/script_list_content.html +++ b/netbox/templates/extras/inc/script_list_content.html @@ -54,7 +54,7 @@