[GIT-174]chore: set completed_at as read only field for work item (#9083)

This commit is contained in:
Sangeetha
2026-05-25 14:01:50 +05:30
committed by GitHub
parent 41b03bb142
commit e71a8f5dbb
2 changed files with 3 additions and 1 deletions

View File

@@ -69,7 +69,7 @@ class IssueSerializer(BaseSerializer):
class Meta:
model = Issue
read_only_fields = ["id", "workspace", "project", "updated_by", "updated_at"]
read_only_fields = ["id", "workspace", "project", "updated_by", "updated_at", "completed_at"]
exclude = ["description_json", "description_stripped"]
def validate(self, data):
@@ -850,6 +850,7 @@ class IssueExpandSerializer(BaseSerializer):
"updated_by",
"created_at",
"updated_at",
"completed_at",
]

View File

@@ -110,6 +110,7 @@ class IssueCreateSerializer(BaseSerializer):
"updated_by",
"created_at",
"updated_at",
"completed_at",
]
def to_representation(self, instance):