summaryrefslogtreecommitdiff
path: root/docs/topics/auth
diff options
context:
space:
mode:
authorSarah Boyce <42296566+sarahboyce@users.noreply.github.com>2024-12-12 16:17:09 +0100
committerSarah Boyce <42296566+sarahboyce@users.noreply.github.com>2025-01-15 22:28:37 +0100
commit810edfd7428e12bd640573112c6c1a024ac33da2 (patch)
treec6dd06c80384f51aa373dfff5e0285d753a8830f /docs/topics/auth
parent9b5ad4056ccf9ff7ea548f72d28eb66c1b4f84cc (diff)
Removed versionadded/changed annotations for 5.1.
This also removes remaining versionadded/changed annotations for older versions.
Diffstat (limited to 'docs/topics/auth')
-rw-r--r--docs/topics/auth/default.txt22
1 files changed, 0 insertions, 22 deletions
diff --git a/docs/topics/auth/default.txt b/docs/topics/auth/default.txt
index a22cebbf15..06d7c2fc26 100644
--- a/docs/topics/auth/default.txt
+++ b/docs/topics/auth/default.txt
@@ -601,10 +601,6 @@ The ``login_required`` decorator
:func:`django.contrib.admin.views.decorators.staff_member_required`
decorator a useful alternative to ``login_required()``.
-.. versionchanged:: 5.1
-
- Support for wrapping asynchronous view functions was added.
-
.. currentmodule:: django.contrib.auth.mixins
The ``LoginRequiredMixin`` mixin
@@ -647,8 +643,6 @@ inheritance list.
The ``login_not_required`` decorator
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-.. versionadded:: 5.1
-
When :class:`~django.contrib.auth.middleware.LoginRequiredMiddleware` is
installed, all views require authentication by default. Some views, such as the
login view, may need to disable this behavior.
@@ -719,11 +713,6 @@ email in the desired domain and if not, redirects to the login page::
@user_passes_test(email_check, login_url="/login/")
def my_view(request): ...
- .. versionchanged:: 5.1
-
- Support for wrapping asynchronous view functions and using asynchronous
- test callables was added.
-
.. currentmodule:: django.contrib.auth.mixins
.. class:: UserPassesTestMixin
@@ -828,10 +817,6 @@ The ``permission_required`` decorator
``redirect_authenticated_user=True`` and the logged-in user doesn't have
all of the required permissions.
-.. versionchanged:: 5.1
-
- Support for wrapping asynchronous view functions was added.
-
.. currentmodule:: django.contrib.auth.mixins
The ``PermissionRequiredMixin`` mixin
@@ -1640,15 +1625,8 @@ provides several built-in forms located in :mod:`django.contrib.auth.forms`:
Takes the ``user`` as the first positional argument.
- .. versionchanged:: 5.1
-
- Option to disable (or reenable) password-based authentication was
- added.
-
.. class:: AdminUserCreationForm
- .. versionadded:: 5.1.1
-
A form used in the admin interface to create a new user. Inherits from
:class:`UserCreationForm`.