[1.9.x] Documented auth's login/logout function parameters.

Backport of c14b6b52ff from master
This commit is contained in:
Tim Graham 2015-09-28 14:08:17 -04:00
parent 76aa4cc8a2
commit 0094fb6be8
1 changed files with 2 additions and 2 deletions

View File

@ -323,7 +323,7 @@ How to log a user in
If you have an authenticated user you want to attach to the current session
- this is done with a :func:`~django.contrib.auth.login` function.
.. function:: login()
.. function:: login(request, user)
To log a user in, from a view, use :func:`~django.contrib.auth.login()`. It
takes an :class:`~django.http.HttpRequest` object and a
@ -371,7 +371,7 @@ If you have an authenticated user you want to attach to the current session
How to log a user out
---------------------
.. function:: logout()
.. function:: logout(request)
To log out a user who has been logged in via
:func:`django.contrib.auth.login()`, use