mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Refs #26929 -- Removed extra_context parameter of contrib.auth.views.logout_then_login().
Per deprecation timeline.
This commit is contained in:
@@ -229,3 +229,6 @@ how to remove usage of these features.
|
||||
* ``contrib.auth.views.login()``, ``logout()``, ``password_change()``,
|
||||
``password_change_done()``, ``password_reset()``, ``password_reset_done()``,
|
||||
``password_reset_confirm()``, and ``password_reset_complete()`` are removed.
|
||||
|
||||
* The ``extra_context`` parameter of ``contrib.auth.views.logout_then_login()``
|
||||
is removed.
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user