mirror of
https://github.com/ansible/awx.git
synced 2026-04-07 02:59:21 -02:30
change wording to reflect team sublist endpoint
This commit is contained in:
@@ -3778,10 +3778,10 @@ class RoleTeamsList(ListAPIView):
|
|||||||
return Team.objects.filter(member_role__children=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 team creation here
|
||||||
sub_id = request.data.get('id', None)
|
sub_id = request.data.get('id', None)
|
||||||
if not sub_id:
|
if not sub_id:
|
||||||
data = dict(msg="Role 'id' field is missing.")
|
data = dict(msg="Team 'id' field is missing.")
|
||||||
return Response(data, status=status.HTTP_400_BAD_REQUEST)
|
return Response(data, status=status.HTTP_400_BAD_REQUEST)
|
||||||
|
|
||||||
role = Role.objects.get(pk=self.kwargs['pk'])
|
role = Role.objects.get(pk=self.kwargs['pk'])
|
||||||
|
|||||||
Reference in New Issue
Block a user