Django Auth Mixin Processors¶
PermissionRequiredMixinProcessor¶
-
class
permissions_auditor.processors.auth_mixins.
PermissionRequiredMixinProcessor
¶ Processes views that directly inherit from
django.contrib.auth.mixins.PermissionRequiredMixin
.Hint
If the
has_permission()
function is overridden, any docstrings on that function will be displayed in the additional info column.
LoginRequiredMixinProcessor¶
-
class
permissions_auditor.processors.auth_mixins.
LoginRequiredMixinProcessor
¶ Processes views that directly inherit from
django.contrib.auth.mixins.LoginRequiredMixin
.
UserPassesTestMixinProcessor¶
-
class
permissions_auditor.processors.auth_mixins.
UserPassesTestMixinProcessor
¶ Processes views that directly inherit from
django.contrib.auth.mixins.UserPassesTestMixin
.Hint
If the function returned by
get_test_func()
is overridden, any docstrings on that function will be displayed in the additional info column.Note
UserPassesTestMixinProcessor does not automatically check that the User is not anonymous. This means they don’t necessarily need to be authenticated for the check to pass, so this processor returns
None
(unknown) for the login_required attribute.