Skip to content

Commit

Permalink
Add description field to TenantSerializer
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
rburkholder authored Jan 13, 2017
1 parent ea64917 commit eb28f4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion netbox/tenancy/api/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class TenantSerializer(CustomFieldSerializer, serializers.ModelSerializer):

class Meta:
model = Tenant
fields = ['id', 'name', 'slug', 'group', 'comments', 'custom_fields']
fields = ['id', 'name', 'slug', 'group', 'description', 'comments', 'custom_fields']


class TenantNestedSerializer(TenantSerializer):
Expand Down

0 comments on commit eb28f4a

Please sign in to comment.