From 0106588cb1e0dc23edbe41bee8ed2ceaada1cc1f Mon Sep 17 00:00:00 2001 From: Guillaume Andreu Sabater Date: Sun, 6 Nov 2022 23:57:46 +0100 Subject: [PATCH] added Prefetch attributes --- django-stubs/db/models/query.pyi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/django-stubs/db/models/query.pyi b/django-stubs/db/models/query.pyi index 7301b14fc..9e75ff7ec 100644 --- a/django-stubs/db/models/query.pyi +++ b/django-stubs/db/models/query.pyi @@ -214,6 +214,10 @@ _QuerySetAny = _QuerySet QuerySet = _QuerySet[_T, _T] class Prefetch: + prefetch_through: str + prefetch_to: str + queryset: Optional[QuerySet] + to_attr: Optional[str] def __init__(self, lookup: str, queryset: Optional[QuerySet] = ..., to_attr: Optional[str] = ...) -> None: ... def __getstate__(self) -> Dict[str, Any]: ... def add_prefix(self, prefix: str) -> None: ...