Skip to content

Commit 10b3058

Browse files
authored
Loosen bound on CurrentSiteManager manager type var (#2308)
1 parent 7fe476c commit 10b3058

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
from typing import TypeVar
22

3-
from django.contrib.sites.models import Site
43
from django.db import models
54

6-
_T = TypeVar("_T", bound=Site)
5+
_T = TypeVar("_T", bound=models.Model)
76

87
class CurrentSiteManager(models.Manager[_T]):
98
def __init__(self, field_name: str | None = ...) -> None: ...

0 commit comments

Comments
 (0)