Skip to content

Commit

Permalink
Fix the dimension field on ProjectSerializer to read_only (#4371)
Browse files Browse the repository at this point in the history
  • Loading branch information
k1won authored Feb 22, 2022
1 parent 1e44b96 commit 0f0d5bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cvat/apps/engine/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0f0d5bd

Please sign in to comment.