aboutsummaryrefslogtreecommitdiffstats
path: root/djangorestframework
diff options
context:
space:
mode:
authorTom Christie2011-04-11 13:52:16 +0100
committerTom Christie2011-04-11 13:52:16 +0100
commit136c9b5271fc205abffbbe5422b3c345858a533b (patch)
tree06bab7d140aa92c85fff97e802b59b0cca80fde2 /djangorestframework
parentcb9fb6ef2f9ac38c4f1c3946252a542b1f3f15d7 (diff)
downloaddjango-rest-framework-136c9b5271fc205abffbbe5422b3c345858a533b.tar.bz2
Tweak
Diffstat (limited to 'djangorestframework')
-rw-r--r--djangorestframework/request.py2
-rw-r--r--djangorestframework/resource.py1
2 files changed, 2 insertions, 1 deletions
diff --git a/djangorestframework/request.py b/djangorestframework/request.py
index 8a4330b4..7f2cb0bc 100644
--- a/djangorestframework/request.py
+++ b/djangorestframework/request.py
@@ -17,6 +17,7 @@ class RequestMixin(object):
CONTENT_PARAM = "_content"
parsers = ()
+ validators = ()
def _get_method(self):
"""
@@ -169,6 +170,7 @@ class RequestMixin(object):
self._stream = StringIO(content[self.CONTENT_PARAM])
del(self._raw_content)
+
def parse(self, stream, content_type):
"""
Parse the request content.
diff --git a/djangorestframework/resource.py b/djangorestframework/resource.py
index e6290363..c5faf175 100644
--- a/djangorestframework/resource.py
+++ b/djangorestframework/resource.py
@@ -3,7 +3,6 @@ from django.views.decorators.csrf import csrf_exempt
from djangorestframework.compat import View
from djangorestframework.emitters import EmitterMixin
-from djangorestframework.authenticators import AuthenticatorMixin
from djangorestframework.validators import FormValidatorMixin
from djangorestframework.response import Response, ResponseException
from djangorestframework.request import RequestMixin, AuthMixin