mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-10 14:01:56 +08:00
Add BaseDetailView.object (#1211)
This commit is contained in:
@@ -20,6 +20,7 @@ class SingleObjectMixin(Generic[_M], ContextMixin):
|
||||
def get_context_object_name(self, obj: _M) -> Optional[str]: ...
|
||||
|
||||
class BaseDetailView(SingleObjectMixin[_M], View):
|
||||
object: _M
|
||||
def get(self, request: HttpRequest, *args: Any, **kwargs: Any) -> HttpResponse: ...
|
||||
|
||||
class SingleObjectTemplateResponseMixin(TemplateResponseMixin):
|
||||
|
||||
Reference in New Issue
Block a user