mirror of
https://github.com/ansible/awx.git
synced 2026-05-21 15:57:52 -02:30
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
This commit is contained in:
@@ -41,7 +41,7 @@ class HostManager(models.Manager):
|
|||||||
# If we don't disable this, a filter of {'inventory': self.instance} gets automatically
|
# If we don't disable this, a filter of {'inventory': self.instance} gets automatically
|
||||||
# injected by the related object mapper.
|
# injected by the related object mapper.
|
||||||
self.core_filters = {}
|
self.core_filters = {}
|
||||||
return qs.filter(q)
|
return qs & q
|
||||||
return qs
|
return qs
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user