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