From 2ae47a6bab562ac9a9a1214435704575d7440789 Mon Sep 17 00:00:00 2001 From: Wayne Witzel III Date: Thu, 31 Mar 2016 10:23:39 -0400 Subject: [PATCH] do not use _in for single item --- awx/api/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/api/views.py b/awx/api/views.py index 8189a046ad..670d85a0eb 100644 --- a/awx/api/views.py +++ b/awx/api/views.py @@ -3422,7 +3422,7 @@ class RoleTeamsList(ListAPIView): def get_queryset(self): # TODO: Check 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): # Forbid implicit role creation here