Add organizations related resource to projects.

This commit is contained in:
Michael DeHaan 2013-04-23 11:13:33 -04:00
parent 069d16a1ae
commit c661c0bbf2

View File

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