mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 18:09:57 -03:30
fixing non-unique query combining
This commit is contained in:
parent
4e32e905d9
commit
47561978d2
@ -1498,7 +1498,7 @@ class HostAllGroupsList(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()
|
||||
sublist_qs = parent.all_groups.distinct()
|
||||
return qs & sublist_qs
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user