From 0f0d5bd018e3abc2f2e68d6d7eef4170535a3007 Mon Sep 17 00:00:00 2001 From: Kiwon Jung Date: Tue, 22 Feb 2022 21:56:28 +0900 Subject: [PATCH] Fix the dimension field on ProjectSerializer to read_only (#4371) --- cvat/apps/engine/serializers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cvat/apps/engine/serializers.py b/cvat/apps/engine/serializers.py index 19ba98a8805a..3027cae36b2c 100644 --- a/cvat/apps/engine/serializers.py +++ b/cvat/apps/engine/serializers.py @@ -568,7 +568,7 @@ class ProjectSerializer(serializers.ModelSerializer): assignee = BasicUserSerializer(allow_null=True, required=False) assignee_id = serializers.IntegerField(write_only=True, allow_null=True, required=False) task_subsets = serializers.ListField(child=serializers.CharField(), required=False) - dimension = serializers.CharField(max_length=16, required=False) + dimension = serializers.CharField(max_length=16, required=False, read_only=True) class Meta: model = models.Project