diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2007-09-15 17:48:59 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2007-09-15 17:48:59 +0000 |
| commit | bf3c1cf7bf0c44cb6f8efe0e86e9bb7ec28f54d6 (patch) | |
| tree | be6bbee5615cba2079a9f22e79d595a72a187e57 | |
| parent | 4b610f42d36a39cd975122ab46f85323844c2c72 (diff) | |
Fixed #4888 -- Fixed small confusion in docs/authentication.txt. Thanks, Piotr Lewandowski
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6297 bcc190cf-cafb-0310-a4f2-bffc1f526a37
| -rw-r--r-- | docs/authentication.txt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/authentication.txt b/docs/authentication.txt index 820aff2712..907b72e44a 100644 --- a/docs/authentication.txt +++ b/docs/authentication.txt @@ -992,10 +992,10 @@ Writing an authentication backend --------------------------------- An authentication backend is a class that implements two methods: -``get_user(id)`` and ``authenticate(**credentials)``. +``get_user(user_id)`` and ``authenticate(**credentials)``. -The ``get_user`` method takes an ``id`` -- which could be a username, database -ID or whatever -- and returns a ``User`` object. +The ``get_user`` method takes a ``user_id`` -- which could be a username, +database ID or whatever -- and returns a ``User`` object. The ``authenticate`` method takes credentials as keyword arguments. Most of the time, it'll just look like this:: |
