From f8d0f430ac2d65b9c8f855668c52355c49cf7992 Mon Sep 17 00:00:00 2001 From: AlexSserb Date: Sun, 2 Mar 2025 16:49:44 +0400 Subject: [PATCH] fix: projects editor to selected project editor, moved attributes editor --- schemas/project.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/schemas/project.py b/schemas/project.py index fd3bbf8..a8344ce 100644 --- a/schemas/project.py +++ b/schemas/project.py @@ -9,6 +9,10 @@ class BaseProjectSchema(BaseSchema): name: str +class ProjectGeneralInfoSchema(BaseProjectSchema): + id: int + + class ModuleSchema(BaseSchema): id: int key: str @@ -16,8 +20,7 @@ class ModuleSchema(BaseSchema): is_deleted: bool -class ProjectSchema(BaseProjectSchema): - id: int +class ProjectSchema(ProjectGeneralInfoSchema): attributes: list[AttributeSchema] modules: list[ModuleSchema] @@ -35,7 +38,7 @@ class CreateProjectRequest(BaseSchema): class UpdateProjectRequest(BaseSchema): - project: ProjectSchema + project: ProjectGeneralInfoSchema class UpdateModulesRequest(BaseSchema):