mirror of
https://github.com/ansible/awx.git
synced 2026-05-19 14:57:39 -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
|
# 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 & q
|
qs = qs & q
|
||||||
|
return qs.distinct()
|
||||||
return qs
|
return qs
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user