update node_type to be read-only

This commit is contained in:
Rebeccah
2021-07-26 16:09:23 -04:00
parent 706f3f97ea
commit f11b73da12

View File

@@ -4776,7 +4776,7 @@ class InstanceSerializer(BaseSerializer):
class Meta: class Meta:
model = Instance model = Instance
read_only_fields = ('uuid', 'hostname', 'version') read_only_fields = ('uuid', 'hostname', 'version', 'node_type')
fields = ( fields = (
"id", "id",
"type", "type",