mirror of
https://github.com/fastapi-users/fastapi-users.git
synced 2025-11-02 12:21:53 +08:00
Set orm_mode on BaseUser schema
This commit is contained in:
@ -31,6 +31,9 @@ class BaseUser(Generic[models.ID], CreateUpdateDictModel):
|
||||
is_superuser: bool = False
|
||||
is_verified: bool = False
|
||||
|
||||
class Config:
|
||||
orm_mode = True
|
||||
|
||||
|
||||
class BaseUserCreate(CreateUpdateDictModel):
|
||||
email: EmailStr
|
||||
|
||||
Reference in New Issue
Block a user