2026-01-27 08:24:22 +00:00
|
|
|
# Copyright (c) 2023-present Plane Software, Inc. and contributors
|
|
|
|
|
# SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
# See the LICENSE file for details.
|
|
|
|
|
|
2023-11-20 06:29:20 +00:00
|
|
|
# Module imports
|
2022-11-29 21:17:42 +00:00
|
|
|
from .base import BaseSerializer
|
2024-11-21 12:12:44 +00:00
|
|
|
from plane.db.models import Module
|
2022-11-29 21:17:42 +00:00
|
|
|
|
2024-01-13 13:35:06 +00:00
|
|
|
|
2023-11-20 06:29:20 +00:00
|
|
|
class ModuleBaseSerializer(BaseSerializer):
|
2022-11-29 21:17:42 +00:00
|
|
|
class Meta:
|
2023-11-20 06:29:20 +00:00
|
|
|
model = Module
|
2022-11-29 21:17:42 +00:00
|
|
|
fields = "__all__"
|
|
|
|
|
read_only_fields = [
|
2023-11-20 06:29:20 +00:00
|
|
|
"workspace",
|
|
|
|
|
"project",
|
2022-11-29 21:17:42 +00:00
|
|
|
"created_by",
|
|
|
|
|
"updated_by",
|
|
|
|
|
"created_at",
|
|
|
|
|
"updated_at",
|
2024-01-13 13:35:06 +00:00
|
|
|
]
|