Expose Organization.max_hosts in the API

This commit is contained in:
Jeff Bradberry 2019-02-06 10:38:40 -05:00
parent c3406748de
commit e44c73883e

View File

@ -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)