mirror of
https://github.com/fastapi-users/fastapi-users.git
synced 2026-03-13 07:49:55 +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