summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
authorPreston Holmes <preston@ptone.com>2013-02-06 14:25:51 -0800
committerPreston Holmes <preston@ptone.com>2013-02-07 16:07:56 -0800
commitc44d748272d1d39e7cd48b625c526f532703aa29 (patch)
treeab3b62b8ae008ab4930f27cd4bff5a98f5835bb1 /docs/ref
parent112c6e987dbe789c8eb1889852f6056131c8d4d6 (diff)
Fixed #19662 -- alter auth modelbackend to accept custom username fields
Thanks to Aymeric and Carl for the review.
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/contrib/auth.txt10
1 files changed, 8 insertions, 2 deletions
diff --git a/docs/ref/contrib/auth.txt b/docs/ref/contrib/auth.txt
index f871f1493f..9bd7fe79b7 100644
--- a/docs/ref/contrib/auth.txt
+++ b/docs/ref/contrib/auth.txt
@@ -412,9 +412,15 @@ The following backends are available in :mod:`django.contrib.auth.backends`:
.. class:: ModelBackend
This is the default authentication backend used by Django. It
- authenticates using usernames and passwords stored in the
- :class:`~django.contrib.auth.models.User` model.
+ authenticates using credentials consisting of a user identifier and
+ password. For Django's default user model, the user identifier is the
+ username, for custom user models it is the field specified by
+ USERNAME_FIELD (see :doc:`Customizing Users and authentication
+ </topics/auth/customizing>`).
+ It also handles the default permissions model as defined for
+ :class:`~django.contrib.auth.models.User` and
+ :class:`~django.contrib.auth.models.PermissionsMixin`.
.. class:: RemoteUserBackend