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:
@ -21,7 +21,8 @@ class SecretRoleSerializer(OrganizationalModelSerializer):
|
||||
class Meta:
|
||||
model = SecretRole
|
||||
fields = [
|
||||
'id', 'url', 'name', 'slug', 'description', 'custom_fields', 'created', 'last_updated', 'secret_count',
|
||||
'id', 'url', 'display', 'name', 'slug', 'description', 'custom_fields', 'created', 'last_updated',
|
||||
'secret_count',
|
||||
]
|
||||
|
||||
|
||||
@ -37,8 +38,8 @@ class SecretSerializer(PrimaryModelSerializer):
|
||||
class Meta:
|
||||
model = Secret
|
||||
fields = [
|
||||
'id', 'url', 'assigned_object_type', 'assigned_object_id', 'assigned_object', 'role', 'name', 'plaintext',
|
||||
'hash', 'tags', 'custom_fields', 'created', 'last_updated',
|
||||
'id', 'url', 'display', 'assigned_object_type', 'assigned_object_id', 'assigned_object', 'role', 'name',
|
||||
'plaintext', 'hash', 'tags', 'custom_fields', 'created', 'last_updated',
|
||||
]
|
||||
validators = []
|
||||
|
||||
|
Reference in New Issue
Block a user