Подготовка к переносу классов моделей
This commit is contained in:
@@ -8,10 +8,19 @@
|
||||
Описание класса AccountManager
|
||||
"""
|
||||
|
||||
from net.xeaf.rack.models.account_model import AccountModel
|
||||
|
||||
|
||||
class AccountManager:
|
||||
"""
|
||||
Реализует методы работы с Аккаунтами
|
||||
"""
|
||||
|
||||
pass
|
||||
@classmethod
|
||||
def restore_account(cls, account: AccountModel) -> None:
|
||||
"""
|
||||
Восстанавливает удаленный Аккаунт
|
||||
"""
|
||||
|
||||
if account.is_deleted():
|
||||
account.undelete(save=True)
|
||||
|
||||
Reference in New Issue
Block a user