From e44c73883e59baf5455ba0426585d667b6fd1f2e Mon Sep 17 00:00:00 2001 From: Jeff Bradberry Date: Wed, 6 Feb 2019 10:38:40 -0500 Subject: [PATCH] Expose Organization.max_hosts in the API --- awx/api/serializers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/api/serializers.py b/awx/api/serializers.py index 72c1121c39..f3a541657a 100644 --- a/awx/api/serializers.py +++ b/awx/api/serializers.py @@ -1229,7 +1229,7 @@ class OrganizationSerializer(BaseSerializer): class Meta: model = Organization - fields = ('*', 'custom_virtualenv',) + fields = ('*', 'max_hosts', 'custom_virtualenv',) def get_related(self, obj): res = super(OrganizationSerializer, self).get_related(obj)