auth.mixins.PermissionRequiredMixin.has_permission()

has_permission()

Returns a boolean denoting whether the current user has permission to execute the decorated view. By default, this returns the result of calling has_perms() with the list of permissions returned by get_permission_required().

doc_Django
2016-10-09 18:34:14
Comments
Leave a Comment

Please login to continue.