Files
django-stubs/django/contrib/auth/mixins.pyi
Maxim Kurnikov a9f215bf64 initial commit
2018-07-29 18:12:23 +03:00

30 lines
688 B
Python

from django.core.handlers.wsgi import WSGIRequest
from django.http.response import HttpResponse
from typing import (
Callable,
List,
)
class AccessMixin:
def get_permission_denied_message(self) -> str: ...
def get_redirect_field_name(self) -> str: ...
def handle_no_permission(self): ...
class LoginRequiredMixin:
def dispatch(self, request: WSGIRequest, *args, **kwargs): ...
class PermissionRequiredMixin:
def dispatch(
self,
request: WSGIRequest,
*args,
**kwargs
) -> HttpResponse: ...
def get_permission_required(self) -> List[str]: ...
class UserPassesTestMixin:
def get_test_func(self) -> Callable: ...