Fix field_validator mode in FlowBase model
This commit is contained in:
parent
bf76ba660f
commit
213c44abc5
1 changed files with 1 additions and 1 deletions
|
|
@ -41,7 +41,7 @@ class FlowBase(SQLModel):
|
|||
return None
|
||||
return dt.isoformat()
|
||||
|
||||
@field_validator("updated_at")
|
||||
@field_validator("updated_at", mode="before")
|
||||
def validate_dt(cls, v):
|
||||
if v is None:
|
||||
return v
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue