mirror of
https://github.com/ansible/awx.git
synced 2026-01-21 14:38:00 -03:30
Add distinct to HostManager for DynamicFilter results
This commit is contained in:
parent
b2b15043c9
commit
477956ec30
@ -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
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user