Skip to content

Commit ae5af12

Browse files
authored
Add BaseDetailView.object (#1211)
1 parent 85ae4bb commit ae5af12

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

django-stubs/views/generic/detail.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ class SingleObjectMixin(Generic[_M], ContextMixin):
2020
def get_context_object_name(self, obj: _M) -> Optional[str]: ...
2121

2222
class BaseDetailView(SingleObjectMixin[_M], View):
23+
object: _M
2324
def get(self, request: HttpRequest, *args: Any, **kwargs: Any) -> HttpResponse: ...
2425

2526
class SingleObjectTemplateResponseMixin(TemplateResponseMixin):

0 commit comments

Comments
 (0)