From c6654d96a24d4ff3112c7f83c28ab852161581c6 Mon Sep 17 00:00:00 2001 From: Arthur Hanson Date: Mon, 23 Sep 2024 11:53:24 -0700 Subject: [PATCH] 17501 fix showing last run of script job execution in list view --- netbox/netbox/models/features.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netbox/netbox/models/features.py b/netbox/netbox/models/features.py index d0ca2c8d3..a97227770 100644 --- a/netbox/netbox/models/features.py +++ b/netbox/netbox/models/features.py @@ -408,7 +408,7 @@ class JobsMixin(models.Model): def get_latest_jobs(self): """ - Return a dictionary mapping of the most recent jobs for this instance. + 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')