class documentation

class UserPassesTestMixin(AccessMixin):

View In Hierarchy

Deny a request with a permission error if the test_func() method returns False.
Method get​_test​_func Override this method to use a different test_func method.
Method test​_func Undocumented
Method dispatch Undocumented

Inherited from AccessMixin:

Method get​_login​_url Override this method to override the login_url attribute.
Method get​_permission​_denied​_message Override this method to override the permission_denied_message attribute.
Method get​_redirect​_field​_name Override this method to override the redirect_field_name attribute.
Method handle​_no​_permission Undocumented
Class Variable login​_url Undocumented
Class Variable permission​_denied​_message Undocumented
Class Variable raise​_exception Undocumented
def get_test_func(self):
Override this method to use a different test_func method.
def test_func(self):

Undocumented

def dispatch(self, request, *args, **kwargs):

Undocumented