mirror of
https://github.com/fastapi-users/fastapi-users.git
synced 2025-11-06 16:05:47 +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_superuser: bool = False
|
||||||
is_verified: bool = False
|
is_verified: bool = False
|
||||||
|
|
||||||
|
class Config:
|
||||||
|
orm_mode = True
|
||||||
|
|
||||||
|
|
||||||
class BaseUserCreate(CreateUpdateDictModel):
|
class BaseUserCreate(CreateUpdateDictModel):
|
||||||
email: EmailStr
|
email: EmailStr
|
||||||
|
|||||||
Reference in New Issue
Block a user