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')