Подготовка к замене AuthRejectReason
This commit is contained in:
@@ -16,6 +16,16 @@ class AccountManager:
|
||||
Реализует методы работы с Аккаунтами
|
||||
"""
|
||||
|
||||
@classmethod
|
||||
def check_account(cls, username: str) -> None:
|
||||
"""
|
||||
Проверяет Аккаунт с указанным именем
|
||||
"""
|
||||
|
||||
account = AccountModel.objects.filter(username=username).first()
|
||||
if account is None:
|
||||
raise ValueError("Account not found")
|
||||
|
||||
@classmethod
|
||||
def restore_account(cls, account: AccountModel) -> None:
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user