mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Refs #26929 -- Removed extra_context parameter of contrib.auth.views.logout_then_login().
Per deprecation timeline.
This commit is contained in:
parent
4f313e284e
commit
6e40b70bf4
4 changed files with 5 additions and 26 deletions
|
@ -1126,7 +1126,7 @@ implementation details see :ref:`using-the-views`.
|
|||
:attr:`request.META['SERVER_NAME'] <django.http.HttpRequest.META>`.
|
||||
For more on sites, see :doc:`/ref/contrib/sites`.
|
||||
|
||||
.. function:: logout_then_login(request, login_url=None, extra_context=None)
|
||||
.. function:: logout_then_login(request, login_url=None)
|
||||
|
||||
Logs a user out, then redirects to the login page.
|
||||
|
||||
|
@ -1137,14 +1137,6 @@ implementation details see :ref:`using-the-views`.
|
|||
* ``login_url``: The URL of the login page to redirect to.
|
||||
Defaults to :setting:`settings.LOGIN_URL <LOGIN_URL>` if not supplied.
|
||||
|
||||
* ``extra_context``: A dictionary of context data that will be added to the
|
||||
default context data passed to the template.
|
||||
|
||||
.. deprecated:: 1.11
|
||||
|
||||
The unused ``extra_context`` parameter is deprecated and will be
|
||||
removed in Django 2.1.
|
||||
|
||||
.. class:: PasswordChangeView
|
||||
|
||||
.. versionadded:: 1.11
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue