mirror of
https://github.com/fastapi-users/fastapi-users.git
synced 2025-08-14 18:58:10 +08:00
Install Black formatter
This commit is contained in:
@ -12,7 +12,7 @@ class UserBase(BaseModel):
|
||||
is_active: Optional[bool] = True
|
||||
is_superuser: Optional[bool] = False
|
||||
|
||||
@pydantic.validator('id', pre=True, always=True)
|
||||
@pydantic.validator("id", pre=True, always=True)
|
||||
def default_id(cls, v):
|
||||
return v or str(uuid.uuid4())
|
||||
|
||||
|
Reference in New Issue
Block a user