diff --git a/rest_framework-stubs/authtoken/models.pyi b/rest_framework-stubs/authtoken/models.pyi index bedccc0eb..2ca5c8380 100644 --- a/rest_framework-stubs/authtoken/models.pyi +++ b/rest_framework-stubs/authtoken/models.pyi @@ -1,12 +1,14 @@ -from typing import Any +from typing import Any, ClassVar from django.db import models +from django.db.models.manager import Manager from typing_extensions import Self class Token(models.Model): key: models.CharField user: models.OneToOneField created: models.DateTimeField + objects: ClassVar[Manager[Self]] @classmethod def generate_key(cls) -> str: ...