mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Restore not-so-extraneous 'id' field to all WritableSerializers
This commit is contained in:
@@ -42,7 +42,7 @@ class WritableSecretSerializer(serializers.ModelSerializer):
|
||||
|
||||
class Meta:
|
||||
model = Secret
|
||||
fields = ['device', 'role', 'name', 'plaintext']
|
||||
fields = ['id', 'device', 'role', 'name', 'plaintext']
|
||||
validators = []
|
||||
|
||||
def validate(self, data):
|
||||
|
Reference in New Issue
Block a user