diff --git a/awx/main/managers.py b/awx/main/managers.py index fc99cbd7a4..0ce2068a14 100644 --- a/awx/main/managers.py +++ b/awx/main/managers.py @@ -41,7 +41,8 @@ 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 & q + qs = qs & q + return qs.distinct() return qs