Skip to content
Snippets Groups Projects
Commit f92fd3dd authored by Bastien Abadie's avatar Bastien Abadie
Browse files

Add read only fields on ligh element serializer

parent 20c83518
No related branches found
No related tags found
1 merge request!1029Better performance for ListProcessElements recursion.
......@@ -41,6 +41,7 @@ class ElementLightSerializer(serializers.ModelSerializer):
'type',
'name',
)
read_only_fields = ('id', 'type', 'name')
class ElementZoneSerializer(ElementLightSerializer):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment