mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
Fixed #26601 -- Improved middleware per DEP 0005.
Thanks Tim Graham for polishing the patch, updating the tests, and writing documentation. Thanks Carl Meyer for shepherding the DEP.
This commit is contained in:
committed by
Tim Graham
parent
05c888ffb8
commit
9baf692a58
@@ -217,7 +217,7 @@ class BaseTests(object):
|
||||
|
||||
@modify_settings(
|
||||
INSTALLED_APPS={'remove': 'django.contrib.messages'},
|
||||
MIDDLEWARE_CLASSES={'remove': 'django.contrib.messages.middleware.MessageMiddleware'},
|
||||
MIDDLEWARE={'remove': 'django.contrib.messages.middleware.MessageMiddleware'},
|
||||
)
|
||||
@override_settings(
|
||||
MESSAGE_LEVEL=constants.DEBUG,
|
||||
@@ -243,7 +243,7 @@ class BaseTests(object):
|
||||
|
||||
@modify_settings(
|
||||
INSTALLED_APPS={'remove': 'django.contrib.messages'},
|
||||
MIDDLEWARE_CLASSES={'remove': 'django.contrib.messages.middleware.MessageMiddleware'},
|
||||
MIDDLEWARE={'remove': 'django.contrib.messages.middleware.MessageMiddleware'},
|
||||
)
|
||||
@override_settings(
|
||||
TEMPLATES=[{
|
||||
|
||||
Reference in New Issue
Block a user