Commit 136c9b52 by Tom Christie

Tweak

parent cb9fb6ef
...@@ -17,6 +17,7 @@ class RequestMixin(object): ...@@ -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): ...@@ -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.
......
...@@ -3,7 +3,6 @@ from django.views.decorators.csrf import csrf_exempt ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment