mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
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.
This commit is contained in:
committed by
GitHub
parent
424c2a59d6
commit
97c0f23c67
@ -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):
|
||||||
|
Reference in New Issue
Block a user