1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-02 09:51:09 +03:00

Fix RelatedManager exception issue on the dashboard

This commit is contained in:
Matthew Jones 2013-11-20 13:34:49 -05:00
parent 99726266e9
commit 7fa9e3289b

View File

@ -164,7 +164,7 @@ class DashboardView(APIView):
failed_group_inventory = [g.inventory for g in user_groups if g.inventory.has_active_failures]
group_with_job_failure = 0
for i in failed_group_inventory:
for j in i.jobs:
for j in i.jobs.all():
if j.failed:
group_with_job_failure += 1
break