Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #4888 -- Fixed small confusion in docs/authentication.txt. Than…

…ks, Piotr Lewandowski

git-svn-id: http://code.djangoproject.com/svn/django/trunk@6297 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit bf3c1cf7bf0c44cb6f8efe0e86e9bb7ec28f54d6 1 parent 4b610f4
@adrianholovaty adrianholovaty authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 docs/authentication.txt
View
6 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::
Please sign in to comment.
Something went wrong with that request. Please try again.