mirror of
https://github.com/ansible/awx.git
synced 2026-05-24 00:57:48 -02:30
do not use _in for single item
This commit is contained in:
@@ -3422,7 +3422,7 @@ class RoleTeamsList(ListAPIView):
|
|||||||
def get_queryset(self):
|
def get_queryset(self):
|
||||||
# TODO: Check
|
# TODO: Check
|
||||||
role = Role.objects.get(pk=self.kwargs['pk'])
|
role = Role.objects.get(pk=self.kwargs['pk'])
|
||||||
return Team.objects.filter(member_role__children__in=[role])
|
return Team.objects.filter(member_role__children=role)
|
||||||
|
|
||||||
def post(self, request, pk, *args, **kwargs):
|
def post(self, request, pk, *args, **kwargs):
|
||||||
# Forbid implicit role creation here
|
# Forbid implicit role creation here
|
||||||
|
|||||||
Reference in New Issue
Block a user