1
0
mirror of https://github.com/django/django.git synced 2025-04-12 03:22:21 +00:00

[4.1.x] Fixed #34154 -- Made mixin headers consistent in auth docs.

Backport of b088cc2feaac638aea91e4d3ab22d276f81630ff from main
This commit is contained in:
Tony Lechner 2022-11-13 22:28:27 -06:00 committed by Mariusz Felisiak
parent 8c8427c35e
commit 939bab68d8

View File

@ -565,8 +565,8 @@ The ``login_required`` decorator
.. currentmodule:: django.contrib.auth.mixins
The ``LoginRequired`` mixin
~~~~~~~~~~~~~~~~~~~~~~~~~~~
The ``LoginRequiredMixin`` mixin
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
When using :doc:`class-based views </topics/class-based-views/index>`, you can
achieve the same behavior as with ``login_required`` by using the