Removed api/v1/projects/N/organizations as it is no longer relevant

Also added 'organization' related field to the project
This commit is contained in:
Akita Noek
2016-03-14 16:26:15 -04:00
parent 7cf28e2f03
commit 0c0ed45b44
3 changed files with 3 additions and 9 deletions

View File

@@ -829,13 +829,6 @@ class ProjectPlaybooks(RetrieveAPIView):
model = Project
serializer_class = ProjectPlaybooksSerializer
class ProjectOrganizationsList(SubListCreateAttachDetachAPIView):
model = Organization
serializer_class = OrganizationSerializer
parent_model = Project
relationship = 'organizations'
class ProjectTeamsList(SubListCreateAttachDetachAPIView):
model = Team