Skip to content

Commit 7b55e43

Browse files
author
Andrei Neagu
committed
added validator
1 parent c3b6b7a commit 7b55e43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/models-library/src/models_library/projects.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ class ProjectAtDB(BaseProjectModel):
130130
Field(description="Defines if a study is available publicly"),
131131
] = False
132132

133-
@field_validator("project_type", mode="before")
133+
@field_validator("project_type", "template_type", mode="before")
134134
@classmethod
135135
def _convert_sql_alchemy_enum(cls, v):
136136
if isinstance(v, Enum):

0 commit comments

Comments
 (0)