From 67e516f2638d3ea51d306e0f8c3bd3e0f8255a56 Mon Sep 17 00:00:00 2001 From: Wayne Witzel III Date: Wed, 22 Jun 2016 12:14:11 -0400 Subject: [PATCH] update language in error message --- awx/api/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/awx/api/views.py b/awx/api/views.py index b490d406f4..e48d6e2642 100644 --- a/awx/api/views.py +++ b/awx/api/views.py @@ -879,7 +879,7 @@ class TeamRolesList(SubListCreateAttachDetachAPIView): role = Role.objects.get(pk=sub_id) content_type = ContentType.objects.get_for_model(Organization) if role.content_type == content_type: - data = dict(msg="You cannot assign Organization roles and child roles for Teams.") + data = dict(msg="You cannot assign an Organization role as a child role for a Team.") return Response(data, status=status.HTTP_400_BAD_REQUEST) return super(TeamRolesList, self).post(request, *args, **kwargs) @@ -3724,7 +3724,7 @@ class RoleTeamsList(ListAPIView): role = Role.objects.get(pk=self.kwargs['pk']) content_type = ContentType.objects.get_for_model(Organization) if role.content_type == content_type: - data = dict(msg="You cannot assign Organization roles and child roles for Teams.") + data = dict(msg="You cannot assign an Organization role as a child role for a Team.") return Response(data, status=status.HTTP_400_BAD_REQUEST) team = Team.objects.get(pk=sub_id)