From 0a157c1125e7a9a2c485098c8a5bcafaba7e5d07 Mon Sep 17 00:00:00 2001 From: sobolevn Date: Fri, 26 Jul 2024 09:00:15 +0300 Subject: [PATCH] Add `objects` attribute to `Token` --- rest_framework-stubs/authtoken/models.pyi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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: ...