瀏覽代碼

Add description field to TenantSerializer

This might be just an oversight.  Other data models do include the description in their serialisers.  The API produces the description field with this change.
Raymond P. Burkholder 9 年之前
父節點
當前提交
97c0f23c67
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      netbox/tenancy/api/serializers.py

+ 1 - 1
netbox/tenancy/api/serializers.py

@@ -30,7 +30,7 @@ class TenantSerializer(CustomFieldSerializer, serializers.ModelSerializer):
 
 
     class Meta:
     class Meta:
         model = Tenant
         model = Tenant
-        fields = ['id', 'name', 'slug', 'group', 'comments', 'custom_fields']
+        fields = ['id', 'name', 'slug', 'group', 'description', 'comments', 'custom_fields']
 
 
 
 
 class TenantNestedSerializer(TenantSerializer):
 class TenantNestedSerializer(TenantSerializer):