From 57b3a372f2122d022f9d6f43818e5fe9d318ce03 Mon Sep 17 00:00:00 2001 From: tom christie tom@tomchristie.com Date: Sat, 19 Feb 2011 10:47:26 +0000 Subject: Move status codes into seperate module --- djangorestframework/resource.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'djangorestframework/resource.py') 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. -- cgit v1.2.3