mirror of
https://github.com/ansible/awx.git
synced 2026-05-08 01:47:35 -02:30
Add organizations related resource to projects.
This commit is contained in:
@@ -75,7 +75,9 @@ class ProjectSerializer(BaseSerializer):
|
|||||||
|
|
||||||
def get_related(self, obj):
|
def get_related(self, obj):
|
||||||
# FIXME: add related resources: inventories
|
# FIXME: add related resources: inventories
|
||||||
return dict()
|
return dict(
|
||||||
|
organizations = reverse(lib.urls.views_ProjectsOrganizationsList, args=(obj.pk,))
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
class InventorySerializer(BaseSerializer):
|
class InventorySerializer(BaseSerializer):
|
||||||
|
|||||||
Reference in New Issue
Block a user