aboutsummaryrefslogtreecommitdiffstats
path: root/djangorestframework/resource.py
diff options
context:
space:
mode:
authortom christie tom@tomchristie.com2011-02-19 10:47:26 +0000
committertom christie tom@tomchristie.com2011-02-19 10:47:26 +0000
commit57b3a372f2122d022f9d6f43818e5fe9d318ce03 (patch)
treeeb667e2de5681d1886d5119b5d4092b12cd24524 /djangorestframework/resource.py
parent805aa03ec1871f6a766d9052b348ddce9e9843c3 (diff)
downloaddjango-rest-framework-57b3a372f2122d022f9d6f43818e5fe9d318ce03.tar.bz2
Move status codes into seperate module
Diffstat (limited to 'djangorestframework/resource.py')
-rw-r--r--djangorestframework/resource.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/djangorestframework/resource.py b/djangorestframework/resource.py
index 68ca6bf3..9c3a03c3 100644
--- a/djangorestframework/resource.py
+++ b/djangorestframework/resource.py
@@ -8,8 +8,8 @@ from djangorestframework.authenticators import AuthenticatorMixin
from djangorestframework.validators import FormValidatorMixin
from djangorestframework.content import OverloadedContentMixin
from djangorestframework.methods import OverloadedPOSTMethodMixin
-from djangorestframework import emitters, parsers, authenticators
-from djangorestframework.response import status, Response, ResponseException
+from djangorestframework.response import Response, ResponseException
+from djangorestframework import emitters, parsers, authenticators, status
import re
@@ -124,7 +124,6 @@ class Resource(EmitterMixin, ParserMixin, AuthenticatorMixin, FormValidatorMixin
return data
# Session based authentication is explicitly CSRF validated, all other authentication is CSRF exempt.
-
@csrf_exempt
def dispatch(self, request, *args, **kwargs):
"""This method is the core of Resource, through which all requests are passed.