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 /docs | |
| 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 'docs')
| -rw-r--r-- | docs/internals/deprecation.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/internals/deprecation.txt b/docs/internals/deprecation.txt index b1f0286384..730f21d699 100644 --- a/docs/internals/deprecation.txt +++ b/docs/internals/deprecation.txt @@ -179,6 +179,13 @@ their deprecation, as per the :ref:`Django deprecation policy have been deprecated since the 1.4 release. The native versions should be used instead. + * The :func:`~django.views.decorators.csrf.csrf_response_exempt` and + :func:`~django.views.decorators.csrf.csrf_view_exempt` decorators will + be removed. Since 1.4 ``csrf_response_exempt`` has been a no-op (it + returns the same function), and ``csrf_view_exempt`` has been a + synonym for ``django.views.decorators.csrf.csrf_exempt``, which should + be used to replace it. + * 2.0 * ``django.views.defaults.shortcut()``. This function has been moved to ``django.contrib.contenttypes.views.shortcut()`` as part of the |
