1
0
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:
Jeremy Stretch
2017-03-17 17:32:43 -04:00
parent f02dd2f439
commit c08fae8bce
6 changed files with 34 additions and 34 deletions

View File

@@ -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):