diff options
| author | Luke Plant <L.Plant.98@cantab.net> | 2011-03-30 17:35:41 +0000 |
|---|---|---|
| committer | Luke Plant <L.Plant.98@cantab.net> | 2011-03-30 17:35:41 +0000 |
| commit | 16f6acdb89c42efaa99b81989a9fae01ff8e607d (patch) | |
| tree | 2eb1878b230059c2b50f251c7fe0bd536ddd744f /tests | |
| parent | 1f5d684f14b16115973dc76666d0281b485aaa16 (diff) | |
Deprecated csrf_response_exempt and csrf_view_exempt decorators
With the removal of CsrfResponseMiddleware, csrf_response_exempt serves no
purposes, and csrf_exempt and csrf_view_exempt perform the same function.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15956 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/regressiontests/csrf_tests/tests.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/regressiontests/csrf_tests/tests.py b/tests/regressiontests/csrf_tests/tests.py index 37a10044c4..22cebcf547 100644 --- a/tests/regressiontests/csrf_tests/tests.py +++ b/tests/regressiontests/csrf_tests/tests.py @@ -4,7 +4,7 @@ import warnings from django.test import TestCase from django.http import HttpRequest, HttpResponse from django.middleware.csrf import CsrfViewMiddleware -from django.views.decorators.csrf import csrf_exempt, csrf_view_exempt, requires_csrf_token +from django.views.decorators.csrf import csrf_exempt, requires_csrf_token from django.core.context_processors import csrf from django.conf import settings from django.template import RequestContext, Template @@ -200,10 +200,10 @@ class CsrfViewMiddlewareTest(TestCase): def test_get_token_for_exempt_view(self): """ - Check that get_token still works for a view decorated with 'csrf_view_exempt'. + Check that get_token still works for a view decorated with 'csrf_exempt'. """ req = self._get_GET_csrf_cookie_request() - CsrfViewMiddleware().process_view(req, csrf_view_exempt(token_view), (), {}) + CsrfViewMiddleware().process_view(req, csrf_exempt(token_view), (), {}) resp = token_view(req) self._check_token_present(resp) |
