Fix imports, __all__ definition, organization/team sublists under projects.

This commit is contained in:
Chris Church
2013-07-20 19:59:53 -04:00
parent a6c767907e
commit 6fda31e790
8 changed files with 36 additions and 34 deletions

View File

@@ -287,7 +287,7 @@ class ProjectDetailPlaybooks(RetrieveAPIView):
model = Project
serializer_class = ProjectPlaybooksSerializer
class ProjectOrganizationsList(SubListAPIView):
class ProjectOrganizationsList(SubListCreateAPIView):
model = Organization
serializer_class = OrganizationSerializer
@@ -302,7 +302,7 @@ class ProjectOrganizationsList(SubListAPIView):
raise PermissionDenied()
return Organization.objects.filter(projects__in = [ project ])
class ProjectTeamsList(BaseSubList):
class ProjectTeamsList(SubListCreateAPIView):
model = Team
serializer_class = TeamSerializer