Expose Organization.max_hosts in the API

This commit is contained in:
Jeff Bradberry
2019-02-28 15:54:09 -05:00
parent c3406748de
commit e44c73883e
+1 -1
View File
@@ -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)