This commit is contained in:
parent
1bbecef77d
commit
296e708e09
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@
|
|||
<td>{{ script.python_class.description|markdown|placeholder }}</td>
|
||||
{% if last_job %}
|
||||
<td>
|
||||
<a href="{% url 'extras:script_result' job_pk=last_job.pk %}">{{ last_job.created|isodatetime }}</a>
|
||||
<a href="{% url 'extras:script_result' job_pk=last_job.pk %}">{{ last_job.started|isodatetime }}</a>
|
||||
</td>
|
||||
<td>
|
||||
{% badge last_job.get_status_display last_job.get_status_color %}
|
||||
|
|
|
|||
Loading…
Reference in New Issue