mirror of
https://github.com/fastapi-users/fastapi-users.git
synced 2025-08-14 18:58:10 +08:00
Bump fastapi from 0.43.0 to 0.44.0 (#63)
* Bump fastapi from 0.43.0 to 0.44.0 Bumps [fastapi](https://github.com/tiangolo/fastapi) from 0.43.0 to 0.44.0. - [Release notes](https://github.com/tiangolo/fastapi/releases) - [Changelog](https://github.com/tiangolo/fastapi/blob/master/docs/history-design-future.md) - [Commits](https://github.com/tiangolo/fastapi/compare/0.43.0...0.44.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> * Fix breaking changes and depreciation following fastapi 0.44.0 * Bump fastapi==0.44.0 in pyproject.toml
This commit is contained in:
![27856297+dependabot-preview[bot]@users.noreply.github.com](/assets/img/avatar_default.png)
committed by
François Voron

parent
3cfd402253
commit
59b8f144d7
@ -2,8 +2,7 @@ import uuid
|
||||
from typing import Optional, Type
|
||||
|
||||
import pydantic
|
||||
from pydantic import BaseModel
|
||||
from pydantic.types import EmailStr
|
||||
from pydantic import BaseModel, EmailStr
|
||||
|
||||
|
||||
class BaseUser(BaseModel):
|
||||
@ -20,11 +19,11 @@ class BaseUser(BaseModel):
|
||||
|
||||
def create_update_dict(self):
|
||||
return self.dict(
|
||||
skip_defaults=True, exclude={"id", "is_superuser", "is_active"}
|
||||
exclude_unset=True, exclude={"id", "is_superuser", "is_active"}
|
||||
)
|
||||
|
||||
def create_update_dict_superuser(self):
|
||||
return self.dict(skip_defaults=True, exclude={"id"})
|
||||
return self.dict(exclude_unset=True, exclude={"id"})
|
||||
|
||||
|
||||
class BaseUserCreate(BaseUser):
|
||||
|
Reference in New Issue
Block a user