mirror of
https://github.com/ansible/awx.git
synced 2026-03-24 20:35:02 -02:30
Fixed /api/v1/projects/N/organizations to allow creating a new organization via POST.
This commit is contained in:
@@ -449,6 +449,7 @@ class ProjectOrganizationsList(BaseSubList):
|
||||
parent_model = Project
|
||||
relationship = 'organizations'
|
||||
postable = True
|
||||
inject_primary_key_on_post_as = 'project' # Not correct, but needed for the post to work?
|
||||
filter_fields = ('name',)
|
||||
|
||||
def get_queryset(self):
|
||||
@@ -465,6 +466,7 @@ class ProjectTeamsList(BaseSubList):
|
||||
parent_model = Project
|
||||
relationship = 'teams'
|
||||
postable = True
|
||||
inject_primary_key_on_post_as = 'project' # Not correct, but needed for the post to work?
|
||||
filter_fields = ('name',)
|
||||
|
||||
def get_queryset(self):
|
||||
|
||||
Reference in New Issue
Block a user