mirror of
https://github.com/ansible/awx.git
synced 2026-05-07 17:37:37 -02:30
Expose Organization.max_hosts in the API
This commit is contained in:
@@ -1229,7 +1229,7 @@ class OrganizationSerializer(BaseSerializer):
|
|||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
model = Organization
|
model = Organization
|
||||||
fields = ('*', 'custom_virtualenv',)
|
fields = ('*', 'max_hosts', 'custom_virtualenv',)
|
||||||
|
|
||||||
def get_related(self, obj):
|
def get_related(self, obj):
|
||||||
res = super(OrganizationSerializer, self).get_related(obj)
|
res = super(OrganizationSerializer, self).get_related(obj)
|
||||||
|
|||||||
Reference in New Issue
Block a user