forked from shaba/openuds
Chanced a couple of declarations
This commit is contained in:
parent
e8c45b568d
commit
75cd3c4845
@ -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
|
||||
|
@ -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='')
|
||||
|
Loading…
x
Reference in New Issue
Block a user