From 75cd3c484523ba89bad140be39c1428c97d573af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adolfo=20G=C3=B3mez=20Garc=C3=ADa?= Date: Sun, 24 Apr 2022 17:13:38 +0200 Subject: [PATCH] Chanced a couple of declarations --- server/src/uds/models/account.py | 2 +- server/src/uds/models/account_usage.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/uds/models/account.py b/server/src/uds/models/account.py index dfc6314b..5cb44abb 100644 --- a/server/src/uds/models/account.py +++ b/server/src/uds/models/account.py @@ -56,7 +56,7 @@ class Account(UUIDModel, TaggingMixin): # type: ignore # "fake" declarations for type checking objects: 'models.BaseManager[Account]' - usages: 'models.QuerySet[AccountUsage]' + usages: 'models.manager.RelatedManager[AccountUsage]' def startUsageAccounting(self, userService: 'UserService') -> None: if hasattr(userService, 'accounting'): # Already has an account diff --git a/server/src/uds/models/account_usage.py b/server/src/uds/models/account_usage.py index 4207bbcc..c4848b37 100644 --- a/server/src/uds/models/account_usage.py +++ b/server/src/uds/models/account_usage.py @@ -54,7 +54,7 @@ class AccountUsage(UUIDModel): """ # "fake" declarations for type checking - objects: 'models.BaseManager[AccountUsage]' + objects: 'models.manager.Manager[AccountUsage]' user_name = models.CharField(max_length=128, db_index=True, default='') user_uuid = models.CharField(max_length=50, db_index=True, default='')