mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-15 16:27:09 +08:00
enable more folders
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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] = ...,
|
||||
|
||||
@@ -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: ...
|
||||
|
||||
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user