mirror of
https://github.com/ansible/awx.git
synced 2026-05-11 11:27:36 -02:30
Updated the org users and org admins api list endpoints to use new member_role.members
This commit is contained in:
@@ -633,14 +633,14 @@ class OrganizationUsersList(SubListCreateAttachDetachAPIView):
|
||||
model = User
|
||||
serializer_class = UserSerializer
|
||||
parent_model = Organization
|
||||
relationship = 'users'
|
||||
relationship = 'member_role.members'
|
||||
|
||||
class OrganizationAdminsList(SubListCreateAttachDetachAPIView):
|
||||
|
||||
model = User
|
||||
serializer_class = UserSerializer
|
||||
parent_model = Organization
|
||||
relationship = 'admins'
|
||||
relationship = 'admin_role.members'
|
||||
|
||||
class OrganizationProjectsList(SubListCreateAttachDetachAPIView):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user