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

Removed extraneous 'id' field from all WritableSerializers

This commit is contained in:
Jeremy Stretch
2017-03-17 16:20:34 -04:00
parent 130ff27f26
commit e544f1fa1e
5 changed files with 33 additions and 41 deletions

View File

@@ -42,7 +42,7 @@ class WritableSecretSerializer(serializers.ModelSerializer):
class Meta:
model = Secret
fields = ['id', 'device', 'role', 'name', 'plaintext']
fields = ['device', 'role', 'name', 'plaintext']
validators = []
def validate(self, data):