From f8c2b466a877c93af7ef1f5055a58bf5f635207c Mon Sep 17 00:00:00 2001 From: Wayne Witzel III Date: Mon, 21 Aug 2017 06:03:37 -0400 Subject: [PATCH] sometimes core_filters is not an attribute, so just set it to empty instead of pop --- awx/main/managers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/main/managers.py b/awx/main/managers.py index d6cd6b65e0..d1f351bb6c 100644 --- a/awx/main/managers.py +++ b/awx/main/managers.py @@ -40,7 +40,7 @@ class HostManager(models.Manager): # # If we don't disable this, a filter of {'inventory': self.instance} gets automatically # injected by the related object mapper. - self.core_filters.pop('inventory', None) + self.core_filters = {} qs = qs & q unique_by_name = qs.order_by('name', 'pk').distinct('name')