diff options
Diffstat (limited to 'djangorestframework/resource.py')
| -rw-r--r-- | djangorestframework/resource.py | 5 |
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. |
