Improve type annotations.
This commit is contained in:
1 parent
62eb46ec4e
commit
174e54681d
2 files changed
+3
-1
No files matched your search
@@ -124,6 +124,7 @@ def generate_stoken_uid():
|
||||
|
||||
|
||||
class Stoken(models.Model):
|
||||
id: int
|
||||
uid = models.CharField(
|
||||
db_index=True,
|
||||
unique=True,
|
||||
|
||||
+2
-1
@@ -20,9 +20,10 @@ class UserManager(DjangoUserManager):
|
||||
|
||||
|
||||
class User(AbstractUser):
|
||||
id: int
|
||||
username_validator = UnicodeUsernameValidator()
|
||||
|
||||
objects = UserManager()
|
||||
objects: UserManager = UserManager()
|
||||
|
||||
username = models.CharField(
|
||||
_("username"),
|
||||
|
||||
Reference in new issue
Block a user