Commit c0d7f992 by Bodor Máté

Add id field to instanceModelSerializer

parent b89540e8
Pipeline #858 passed with stage
in 1 minute 21 seconds
......@@ -9,6 +9,7 @@ class InstanceSerializer(serializers.ModelSerializer):
class Meta:
model = Instance
fields = (
"id",
"name",
"description",
"system",
......@@ -18,7 +19,7 @@ class InstanceSerializer(serializers.ModelSerializer):
"template",
"time_of_suspend",
"time_of_delete")
read_only_fields = ("password", "template", "time_of_suspend", "time_of_delete")
read_only_fields = ("id", "password", "template", "time_of_suspend", "time_of_delete")
class FlavorSerializer(serializers.ModelSerializer):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment