From 7fa9e3289b9af691e20adc8308a6ca6a67059a73 Mon Sep 17 00:00:00 2001 From: Matthew Jones Date: Wed, 20 Nov 2013 13:34:49 -0500 Subject: [PATCH] Fix RelatedManager exception issue on the dashboard --- awx/api/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/api/views.py b/awx/api/views.py index 72d54e8056..0ab654b7cb 100644 --- a/awx/api/views.py +++ b/awx/api/views.py @@ -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