mirror of
https://github.com/django/django.git
synced 2024-12-01 15:42:04 +01:00
eef95ea96f
Only compute the CSRF_COOKIE when it is actually used. This is a significant speedup for clients not using cookies. Changed result of the “test_token_node_no_csrf_cookie” test: It gets a valid CSRF token now which seems like the correct behavior. Changed auth_tests.test_views.LoginTest.test_login_csrf_rotate to use get_token() to trigger CSRF cookie inclusion instead of changing request.META["CSRF_COOKIE_USED"] directly. |
||
---|---|---|
.. | ||
fixtures | ||
models | ||
templates | ||
__init__.py | ||
backend_alias.py | ||
settings.py | ||
test_auth_backends.py | ||
test_basic.py | ||
test_context_processors.py | ||
test_decorators.py | ||
test_forms.py | ||
test_handlers.py | ||
test_hashers.py | ||
test_management.py | ||
test_middleware.py | ||
test_models.py | ||
test_remote_user.py | ||
test_signals.py | ||
test_templates.py | ||
test_tokens.py | ||
test_views.py | ||
urls_admin.py | ||
urls_custom_user_admin.py | ||
urls.py |