Merge pull request #4112 from jangsutsr/4054_add_org_to_wfjt_related_fields

Add org to wfjt related fields
This commit is contained in:
Aaron Tan
2016-11-26 16:12:07 -05:00
committed by GitHub
3 changed files with 14 additions and 0 deletions

View File

@@ -767,6 +767,16 @@ class OrganizationProjectsList(SubListCreateAttachDetachAPIView):
parent_key = 'organization'
class OrganizationWorkflowJobTemplatesList(SubListCreateAttachDetachAPIView):
model = WorkflowJobTemplate
serializer_class = WorkflowJobTemplateListSerializer
parent_model = Organization
relationship = 'workflows'
parent_key = 'organization'
new_in_310 = True
class OrganizationTeamsList(SubListCreateAttachDetachAPIView):
model = Team