mirror of
https://github.com/django/django.git
synced 2025-11-25 05:04:26 +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:
parent
05c888ffb8
commit
9baf692a58
81 changed files with 900 additions and 1414 deletions
|
|
@ -694,7 +694,7 @@ class ClientTest(TestCase):
|
|||
|
||||
|
||||
@override_settings(
|
||||
MIDDLEWARE_CLASSES=['django.middleware.csrf.CsrfViewMiddleware'],
|
||||
MIDDLEWARE=['django.middleware.csrf.CsrfViewMiddleware'],
|
||||
ROOT_URLCONF='test_client.urls',
|
||||
)
|
||||
class CSRFEnabledClientTests(SimpleTestCase):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue