From cc4692932ae8468f6cd25c23764aec6684f1694e Mon Sep 17 00:00:00 2001 From: Chris Meyers Date: Fri, 12 May 2017 12:14:32 -0400 Subject: [PATCH] update Host manager to handle Query Sets * filter_host_string now returns a query set instead of Q(). This change updates the Host manager to remove the .filter() call since the results returned from filter_host_string() has already turned Q() -> Query Set --- 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 2bb1ebece4..fc99cbd7a4 100644 --- a/awx/main/managers.py +++ b/awx/main/managers.py @@ -41,7 +41,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 = {} - return qs.filter(q) + return qs & q return qs