improved version

This commit is contained in:
Maxim Kurnikov
2018-07-29 20:06:41 +03:00
parent c180555415
commit 89bb6eac75
160 changed files with 1007 additions and 607 deletions

View File

@@ -3,7 +3,6 @@ from django.db.models.base import Model
from django.db.models.query import QuerySet
from django.template.response import TemplateResponse
from typing import (
Any,
Dict,
List,
Optional,
@@ -21,8 +20,8 @@ class BaseDetailView:
class SingleObjectMixin:
def get_context_data(self, **kwargs) -> Dict[str, Any]: ...
def get_context_object_name(self, obj: Union[Model, Dict[str, str]]) -> Optional[str]: ...
def get_context_data(self, **kwargs) -> Dict[str, object]: ...
def get_context_object_name(self, obj: Union[Dict[str, str], Model]) -> Optional[str]: ...
def get_object(self, queryset: Optional[QuerySet] = ...) -> Model: ...
def get_queryset(self) -> QuerySet: ...
def get_slug_field(self) -> str: ...