mirror of
https://github.com/ansible/awx.git
synced 2026-01-14 19:30:39 -03:30
Missing .distinct()
This commit is contained in:
parent
cf3c988330
commit
293fd73fe6
@ -1437,7 +1437,7 @@ class GroupAllHostsList(SubListAPIView):
|
||||
def get_queryset(self):
|
||||
parent = self.get_parent_object()
|
||||
self.check_parent_access(parent)
|
||||
qs = self.request.user.get_queryset(self.model)
|
||||
qs = self.request.user.get_queryset(self.model).distinct() # need distinct for '&' operator
|
||||
sublist_qs = parent.all_hosts.distinct()
|
||||
return qs & sublist_qs
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user