1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Add 'display' field to all REST API serializers

This commit is contained in:
Jeremy Stretch
2021-03-16 10:06:25 -04:00
parent ee7f7c877a
commit fb48c1f6dd
26 changed files with 287 additions and 256 deletions

View File

@ -14,7 +14,7 @@ class NestedSecretSerializer(WritableNestedSerializer):
class Meta:
model = Secret
fields = ['id', 'url', 'name']
fields = ['id', 'url', 'display', 'name']
class NestedSecretRoleSerializer(WritableNestedSerializer):
@ -23,4 +23,4 @@ class NestedSecretRoleSerializer(WritableNestedSerializer):
class Meta:
model = SecretRole
fields = ['id', 'url', 'name', 'slug', 'secret_count']
fields = ['id', 'url', 'display', 'name', 'slug', 'secret_count']