aboutsummaryrefslogtreecommitdiffstats
path: root/djangorestframework/authentication.py
diff options
context:
space:
mode:
authorTom Christie2011-12-14 20:10:06 +0000
committerTom Christie2011-12-14 20:10:06 +0000
commitd53f7f45b4297aaf247aefd85093e2a0b413b4c4 (patch)
tree798c3f7b546ecaeb0449d508519e9a1425e30b47 /djangorestframework/authentication.py
parent050f07e7b1c53426d5234f9aa61d9a2461a6aeff (diff)
downloaddjango-rest-framework-d53f7f45b4297aaf247aefd85093e2a0b413b4c4.tar.bz2
Use 1.4's CSRFMiddleware, so that PUT and DELETE get CSRF validation if session authentication is being used
Diffstat (limited to 'djangorestframework/authentication.py')
-rw-r--r--djangorestframework/authentication.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/djangorestframework/authentication.py b/djangorestframework/authentication.py
index be22103e..806021fe 100644
--- a/djangorestframework/authentication.py
+++ b/djangorestframework/authentication.py
@@ -8,7 +8,7 @@ The set of authentication methods which are used is then specified by setting th
"""
from django.contrib.auth import authenticate
-from django.middleware.csrf import CsrfViewMiddleware
+from djangorestframework.compat import CsrfViewMiddleware
from djangorestframework.utils import as_tuple
import base64