mirror of
https://github.com/ansible/awx.git
synced 2026-03-08 21:19:26 -02:30
Add distinct to HostManager for DynamicFilter results
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user