mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-02-26 16:30:41 +03:00
Tweak
This commit is contained in:
parent
cb9fb6ef2f
commit
136c9b5271
|
@ -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.
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user