enable more folders

This commit is contained in:
Maxim Kurnikov
2019-01-30 16:12:19 +03:00
parent 628c1224d6
commit 1868100bd9
5 changed files with 21 additions and 8 deletions

View File

@@ -1,3 +1,3 @@
from .messages import Warning as Warning, Info as Info, Debug as Debug, Error as Error, Critical as Critical
from .registry import run_checks as run_checks
from .registry import run_checks as run_checks, Tags as Tags, register as register

View File

@@ -14,6 +14,7 @@ _ErrorMessagesToOverride = Dict[str, Any]
class Field(RegisterLookupMixin):
widget: Widget
help_text: str
db_table: str
def __init__(
self,
verbose_name: Optional[str] = ...,

View File

@@ -52,7 +52,6 @@ class ManyToManyField(RelatedField, Generic[_T]):
rel_class: Any = ...
description: Any = ...
has_null_arg: Any = ...
db_table: Any = ...
swappable: Any = ...
def __init__(
self,
@@ -64,7 +63,7 @@ class ManyToManyField(RelatedField, Generic[_T]):
through: Optional[Union[str, Type[Model]]] = ...,
through_fields: Optional[Tuple[str, str]] = ...,
db_constraint: bool = ...,
db_table: None = ...,
db_table: Optional[str] = ...,
swappable: bool = ...,
**kwargs: Any
) -> None: ...

View File

@@ -25,3 +25,5 @@ class CsrfViewMiddleware(MiddlewareMixin):
self, request: HttpRequest, callback: Callable, callback_args: Tuple, callback_kwargs: Dict[str, Any]
) -> Optional[HttpResponseForbidden]: ...
def process_response(self, request: HttpRequest, response: HttpResponseBase) -> HttpResponseBase: ...
def _compare_salted_tokens(request_csrf_token: str, csrf_token: str) -> bool: ...