mirror of
https://github.com/ansible/awx.git
synced 2026-05-02 23:25:29 -02:30
revert change of including slice wfj ids in recent_jobs list
This commit is contained in:
@@ -2976,9 +2976,12 @@ class JobTemplateMixin(object):
|
||||
'''
|
||||
|
||||
def _recent_jobs(self, obj):
|
||||
job_mgr = obj.unifiedjob_unified_jobs.non_polymorphic().only('id', 'status', 'finished')
|
||||
if hasattr(obj, 'workflow_jobs'):
|
||||
job_mgr = obj.workflow_jobs
|
||||
else:
|
||||
job_mgr = obj.jobs
|
||||
return [{'id': x.id, 'status': x.status, 'finished': x.finished}
|
||||
for x in job_mgr.order_by('-created')[:10]]
|
||||
for x in job_mgr.all().order_by('-created')[:10]]
|
||||
|
||||
def get_summary_fields(self, obj):
|
||||
d = super(JobTemplateMixin, self).get_summary_fields(obj)
|
||||
|
||||
Reference in New Issue
Block a user