update language in error message

This commit is contained in:
Wayne Witzel III 2016-06-22 12:14:11 -04:00
parent 54e618db2e
commit 67e516f263

View File

@ -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)