#NEWLINE# def dispatch( self , request , * args , **kwargs ) : #NEWLINE# #INDENT# user_test_result = self . get_test_func ( ) ( ) #NEWLINE# if ( not user_test_result ) : #NEWLINE# #INDENT# return self . handle_no_permission ( ) #NEWLINE# #UNINDENT# return super ( UserPassesTestMixin , self ) . dispatch ( request , * args , ** kwargs )