This commit is contained in:
Tom Christie 2011-04-11 13:52:16 +01:00
parent cb9fb6ef2f
commit 136c9b5271
2 changed files with 2 additions and 1 deletions

View File

@ -17,6 +17,7 @@ class RequestMixin(object):
CONTENT_PARAM = "_content" CONTENT_PARAM = "_content"
parsers = () parsers = ()
validators = ()
def _get_method(self): def _get_method(self):
""" """
@ -169,6 +170,7 @@ class RequestMixin(object):
self._stream = StringIO(content[self.CONTENT_PARAM]) self._stream = StringIO(content[self.CONTENT_PARAM])
del(self._raw_content) del(self._raw_content)
def parse(self, stream, content_type): def parse(self, stream, content_type):
""" """
Parse the request content. Parse the request content.

View File

@ -3,7 +3,6 @@ from django.views.decorators.csrf import csrf_exempt
from djangorestframework.compat import View from djangorestframework.compat import View
from djangorestframework.emitters import EmitterMixin from djangorestframework.emitters import EmitterMixin
from djangorestframework.authenticators import AuthenticatorMixin
from djangorestframework.validators import FormValidatorMixin from djangorestframework.validators import FormValidatorMixin
from djangorestframework.response import Response, ResponseException from djangorestframework.response import Response, ResponseException
from djangorestframework.request import RequestMixin, AuthMixin from djangorestframework.request import RequestMixin, AuthMixin