diff --git a/ninja/schema.py b/ninja/schema.py index 75735204d..0036d93e4 100644 --- a/ninja/schema.py +++ b/ninja/schema.py @@ -198,7 +198,7 @@ class Schema(BaseModel, metaclass=ResolverMetaclass): class Config: from_attributes = True # aka orm_mode - @model_validator(mode="before") + @model_validator(mode="after") def _run_root_validator(cls, values: Any, info: ValidationInfo) -> Any: values = DjangoGetter(values, cls, info.context) return values