class documentation
class ModelBackend(BaseBackend): (source)
Known subclasses: django.contrib.auth.backends.AllowAllUsersModelBackend
, django.contrib.auth.backends.RemoteUserBackend
Authenticates against settings.AUTH_USER_MODEL.
Method | authenticate |
Undocumented |
Method | get |
Undocumented |
Method | get |
Return a set of permission strings the user `user_obj` has from the groups they belong. |
Method | get |
Undocumented |
Method | get |
Return a set of permission strings the user `user_obj` has from their `user_permissions`. |
Method | has |
Return True if user_obj has any permissions in the given app_label. |
Method | has |
Undocumented |
Method | user |
Reject users with is_active=False. Custom user models that don't have that attribute are allowed. |
Method | with |
Return users that have permission "perm". By default, filter out inactive users and include superusers. |
Method | _get |
Undocumented |
Method | _get |
Return the permissions of `user_obj` from `from_name`. `from_name` can be either "group" or "user" to return permissions from `_get_group_permissions` or `_get_user_permissions` respectively. |
Method | _get |
Undocumented |
overridden in
django.contrib.auth.backends.AllowAllUsersModelBackend
, django.contrib.auth.backends.AllowAllUsersRemoteUserBackend
Reject users with is_active=False. Custom user models that don't have that attribute are allowed.
Return users that have permission "perm". By default, filter out inactive users and include superusers.