Chanced a couple of declarations

This commit is contained in:
Adolfo Gómez García 2022-04-24 17:13:38 +02:00
parent e8c45b568d
commit 75cd3c4845
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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='')