mirror of
https://github.com/django/django.git
synced 2025-11-20 11:36:04 +00:00
Fixed #31405 -- Added LoginRequiredMiddleware.
Co-authored-by: Adam Johnson <me@adamj.eu> Co-authored-by: Mehmet İnce <mehmet@mehmetince.net> Co-authored-by: Sarah Boyce <42296566+sarahboyce@users.noreply.github.com>
This commit is contained in:
parent
7857507c7f
commit
c7fc9f20b4
17 changed files with 633 additions and 12 deletions
|
|
@ -5,6 +5,7 @@ from asgiref.sync import async_to_sync, iscoroutinefunction
|
|||
from django.contrib.admindocs.middleware import XViewMiddleware
|
||||
from django.contrib.auth.middleware import (
|
||||
AuthenticationMiddleware,
|
||||
LoginRequiredMiddleware,
|
||||
RemoteUserMiddleware,
|
||||
)
|
||||
from django.contrib.flatpages.middleware import FlatpageFallbackMiddleware
|
||||
|
|
@ -34,6 +35,7 @@ from django.utils.deprecation import MiddlewareMixin
|
|||
class MiddlewareMixinTests(SimpleTestCase):
|
||||
middlewares = [
|
||||
AuthenticationMiddleware,
|
||||
LoginRequiredMiddleware,
|
||||
BrokenLinkEmailsMiddleware,
|
||||
CacheMiddleware,
|
||||
CommonMiddleware,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue