mirror of
https://github.com/makeplane/plane.git
synced 2026-07-10 04:25:24 +02:00
[GIT-174]chore: set completed_at as read only field for work item (#9083)
This commit is contained in:
@@ -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",
|
||||
]
|
||||
|
||||
|
||||
|
||||
@@ -110,6 +110,7 @@ class IssueCreateSerializer(BaseSerializer):
|
||||
"updated_by",
|
||||
"created_at",
|
||||
"updated_at",
|
||||
"completed_at",
|
||||
]
|
||||
|
||||
def to_representation(self, instance):
|
||||
|
||||
Reference in New Issue
Block a user