mirror of
https://github.com/etesync/server
synced 2024-12-01 13:08:10 +00:00
Improve type annotations.
This commit is contained in:
parent
62eb46ec4e
commit
174e54681d
@ -124,6 +124,7 @@ def generate_stoken_uid():
|
|||||||
|
|
||||||
|
|
||||||
class Stoken(models.Model):
|
class Stoken(models.Model):
|
||||||
|
id: int
|
||||||
uid = models.CharField(
|
uid = models.CharField(
|
||||||
db_index=True,
|
db_index=True,
|
||||||
unique=True,
|
unique=True,
|
||||||
|
@ -20,9 +20,10 @@ class UserManager(DjangoUserManager):
|
|||||||
|
|
||||||
|
|
||||||
class User(AbstractUser):
|
class User(AbstractUser):
|
||||||
|
id: int
|
||||||
username_validator = UnicodeUsernameValidator()
|
username_validator = UnicodeUsernameValidator()
|
||||||
|
|
||||||
objects = UserManager()
|
objects: UserManager = UserManager()
|
||||||
|
|
||||||
username = models.CharField(
|
username = models.CharField(
|
||||||
_("username"),
|
_("username"),
|
||||||
|
Loading…
Reference in New Issue
Block a user