From aec3f41f4fa20c2dca0d60cfb7a44e4e0f190de3 Mon Sep 17 00:00:00 2001 From: proDream Date: Sun, 12 Jan 2025 13:00:13 +0400 Subject: [PATCH] =?UTF-8?q?fix:=20=D0=B8=D1=81=D0=BF=D1=80=D0=B0=D0=B2?= =?UTF-8?q?=D0=BB=D0=B5=D0=BD=20=D0=B8=D0=BD=D0=B8=D1=86=D0=B8=D0=B0=D0=BB?= =?UTF-8?q?=D0=B8=D0=B7=D0=B0=D1=82=D0=BE=D1=80=20=D0=BA=D0=BB=D0=B0=D1=81?= =?UTF-8?q?=D1=81=D0=B0=20`UserManager`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Удалена передача модели пользователя в конструктор. - Используется默认ная модель `User`. --- lkeep/apps/auth/managers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lkeep/apps/auth/managers.py b/lkeep/apps/auth/managers.py index 5446d89..6d6feb8 100644 --- a/lkeep/apps/auth/managers.py +++ b/lkeep/apps/auth/managers.py @@ -20,7 +20,7 @@ class UserManager: Класс для управления пользователями. """ - def __init__(self, model: type[User] = User, db: DBDependency = Depends(DBDependency)) -> None: + def __init__(self, db: DBDependency = Depends(DBDependency)) -> None: """ Инициализирует экземпляр класса. @@ -30,7 +30,7 @@ class UserManager: :type db: DBDependency """ self.db = db - self.model = model + self.model = User async def create_user(self, user: CreateUser) -> UserReturnData: """